Browse Source

Update library packaging: split to slop and libslopy

Two things have been changed in upstream: build system now properly
places 64-bit .so under %{_libdir}, and the .so itself now contains
versioned SONAME.

This means we can remove workaround for the first issue and start
packaging library separately.  This is much closer to FPG than before.
Alois Mahdal 6 years ago
parent
commit
c57aad75c4
1 changed files with 33 additions and 4 deletions
  1. 33
    4
      slop.spec.in

+ 33
- 4
slop.spec.in View File

15
 BuildRequires: libXrender-devel
15
 BuildRequires: libXrender-devel
16
 BuildRequires: mesa-libEGL-devel
16
 BuildRequires: mesa-libEGL-devel
17
 
17
 
18
+Requires: libslopy = %{version}-%{release}
18
 %description
19
 %description
19
 slop (Select Operation) is an application that queries for a selection
20
 slop (Select Operation) is an application that queries for a selection
20
 from the user and prints the region to stdout.
21
 from the user and prints the region to stdout.
21
 
22
 
23
+%package -n libslopy
24
+Summary: Select Operation
25
+Group: System Environment/Libraries
26
+%description -n libslopy
27
+slop (Select Operation) is an application that queries for a selection
28
+from the user and prints the region to stdout.
29
+
30
+This sub-package contains libslopy library.
31
+
32
+%package -n libslopy-devel
33
+Summary:    Select Operation
34
+Group: Development/Libraries
35
+Requires: libslopy = %{version}-%{release}
36
+%description -n libslopy-devel
37
+slop (Select Operation) is an application that queries for a selection
38
+from the user and prints the region to stdout.
39
+
40
+This sub-package contains development files for libslopy library.
41
+
22
 %prep
42
 %prep
23
 %autosetup -n %{name}-%{version}
43
 %autosetup -n %{name}-%{version}
24
 
44
 
28
 
48
 
29
 %install
49
 %install
30
 %make_install
50
 %make_install
31
-mkdir -p "%{buildroot}%{_libdir}"
32
-mv %{buildroot}/usr/lib/libslopy.so "%{buildroot}%{_libdir}"
33
-rm %{buildroot}/usr/include/slop.hpp
51
+
52
+%post -n libslopy
53
+/sbin/ldconfig
54
+
55
+%postun -n libslopy
56
+/sbin/ldconfig
34
 
57
 
35
 %files
58
 %files
36
 %{_bindir}/slop
59
 %{_bindir}/slop
37
-%{_libdir}/libslopy.so
38
 %{_mandir}/man1/slop.1.gz
60
 %{_mandir}/man1/slop.1.gz
39
 
61
 
62
+%files -n libslopy
63
+%{_libdir}/libslopy.so.%{version}
64
+
65
+%files -n libslopy-devel
66
+%{_libdir}/libslopy.so
67
+%{_includedir}/slop.hpp
68
+
40
 %changelog
69
 %changelog
41
 * __APP_DATE__ Alois Mahdal <netvor+slop@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
70
 * __APP_DATE__ Alois Mahdal <netvor+slop@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
42
 - Unofficial experimental RPM pseudo-release
71
 - Unofficial experimental RPM pseudo-release