Skip to content

Commit 73aa381

Browse files
committed
- updated to 3.6.27
- shared library introduced
1 parent e92114c commit 73aa381

File tree

1 file changed

+65
-3
lines changed

1 file changed

+65
-3
lines changed

reiserfsprogs.spec

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ Summary(pt_BR.UTF-8): Este pacote contém os utilitários para manipulação do
44
Summary(uk.UTF-8): Утиліти для роботы з файловою системою ReiserFS
55
Summary(ru.UTF-8): Утилиты для работы с файловой системой ReiserFS
66
Name: reiserfsprogs
7-
Version: 3.6.24
7+
Version: 3.6.27
88
Release: 1
99
Epoch: 1
1010
License: GPL v2
1111
Group: Applications/System
1212
#Source0: http://www.kernel.org/pub/linux/utils/fs/reiserfs/%{name}-%{version}.tar.gz
1313
Source0: https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v%{version}/%{name}-%{version}.tar.xz
14-
# Source0-md5: 66787380fb418ff7d88a23e47cda7af6
14+
# Source0-md5: 90c139542725efc6da3a6b1709695395
1515
Patch0: %{name}-am.patch
1616
URL: https://reiser4.wiki.kernel.org/index.php/Reiserfsprogs
1717
BuildRequires: autoconf >= 2.50
1818
BuildRequires: automake >= 1:1.11.1
19+
BuildRequires: libcom_err-devel
20+
BuildRequires: libtool
1921
BuildRequires: libuuid-devel
2022
BuildRequires: tar >= 1:1.22
2123
BuildRequires: xz
24+
Requires: %{name}-libs = %{version}-%{release}
2225
Obsoletes: reiserfs-utils
2326
Conflicts: progsreiserfs < 0.3.1-1.rc8.5
2427
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -59,13 +62,51 @@ arquivos ReiserFS.
5962
%description -l uk.UTF-8
6063
Набір утиліт для роботи з файловою системою ReiserFS.
6164

65+
%package libs
66+
Summary: ReiserFS Core library
67+
Summary(pl.UTF-8): Biblioteka ReiserFS Core
68+
Group: Libraries
69+
70+
%description libs
71+
ReiserFS Core library.
72+
73+
%description libs -l pl.UTF-8
74+
Biblioteka ReiserFS Core.
75+
76+
%package devel
77+
Summary: Header files for ReiserFS Core library
78+
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ReiserFS Core
79+
Group: Development/Libraries
80+
Requires: %{name}-libs = %{version}-%{release}
81+
Requires: libcom_err-devel
82+
83+
%description devel
84+
Header files for ReiserFS Core library.
85+
86+
%description devel -l pl.UTF-8
87+
Pliki nagłówkowe biblioteki ReiserFS Core.
88+
89+
%package static
90+
Summary: Static ReiserFS Core library
91+
Summary(pl.UTF-8): Biblioteka statyczna ReiserFS Core
92+
Group: Development/Libraries
93+
Requires: %{name}-devel = %{version}-%{release}
94+
95+
%description static
96+
Static ReiserFS Core library.
97+
98+
%description static -l pl.UTF-8
99+
Biblioteka statyczna ReiserFS Core.
100+
62101
%prep
63102
%setup -q
64103
%patch0 -p1
65104

66105
%build
106+
%{__libtoolize}
67107
%{__aclocal}
68108
%{__autoconf}
109+
%{__autoheader}
69110
%{__automake}
70111
%configure \
71112
--disable-silent-rules
@@ -74,14 +115,20 @@ arquivos ReiserFS.
74115

75116
%install
76117
rm -rf $RPM_BUILD_ROOT
77-
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
118+
#install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
78119

79120
%{__make} -j1 install \
80121
DESTDIR=$RPM_BUILD_ROOT
81122

123+
# obsoleted by pkg-config
124+
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libreiserfscore.la
125+
82126
%clean
83127
rm -rf $RPM_BUILD_ROOT
84128

129+
%post libs -p /sbin/ldconfig
130+
%postun libs -p /sbin/ldconfig
131+
85132
%files
86133
%defattr(644,root,root,755)
87134
%doc CREDITS ChangeLog README
@@ -103,3 +150,18 @@ rm -rf $RPM_BUILD_ROOT
103150
%{_mandir}/man8/reiserfstune.8*
104151
%{_mandir}/man8/resize_reiserfs.8*
105152
%{_mandir}/man8/tunefs.reiserfs.8*
153+
154+
%files libs
155+
%defattr(644,root,root,755)
156+
%attr(755,root,root) %{_libdir}/libreiserfscore.so.*.*.*
157+
%attr(755,root,root) %ghost %{_libdir}/libreiserfscore.so.0
158+
159+
%files devel
160+
%defattr(644,root,root,755)
161+
%attr(755,root,root) %{_libdir}/libreiserfscore.so
162+
%{_includedir}/reiserfs
163+
%{_pkgconfigdir}/reiserfscore.pc
164+
165+
%files static
166+
%defattr(644,root,root,755)
167+
%{_libdir}/libreiserfscore.a

0 commit comments

Comments
 (0)