Accepting request 136442 from home:jengelh:branches:devel:libraries:c_c++
- Remove redundant tags/sections/macros from specfile - Turn doc subpackage into noarch - Use crossdistro-friendly install routine OBS-URL: https://build.opensuse.org/request/show/136442 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/judy?expand=0&rev=2
This commit is contained in:
parent
5c500b2d6c
commit
c13dbbba5f
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 29 21:20:56 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Remove redundant tags/sections/macros from specfile
|
||||||
|
- Turn doc subpackage into noarch
|
||||||
|
- Use crossdistro-friendly install routine
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 29 19:40:04 UTC 2012 - dmitry@roshchin.org
|
Sat Sep 29 19:40:04 UTC 2012 - dmitry@roshchin.org
|
||||||
|
|
||||||
|
32
Judy.spec
32
Judy.spec
@ -16,9 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
Name: Judy
|
Name: Judy
|
||||||
%define libname lib%{name}
|
%define libname libJudy1
|
||||||
Version: 1.0.5
|
Version: 1.0.5
|
||||||
%define somajor 1
|
|
||||||
Release: 0
|
Release: 0
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Summary: A general purpose dynamic array implemented as a C callable library
|
Summary: A general purpose dynamic array implemented as a C callable library
|
||||||
@ -29,8 +28,6 @@ Source0: %{name}-%{version}.tar.bz2
|
|||||||
Patch0: Judy-test-shared.patch
|
Patch0: Judy-test-shared.patch
|
||||||
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
|
||||||
Requires: %{libname}%{somajor} = %{version}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,11 +42,11 @@ only by machine memory. Since Judy is designed as an unbounded array, the size o
|
|||||||
a Judy array is not pre-allocated but grows and shrinks dynamically
|
a Judy array is not pre-allocated but grows and shrinks dynamically
|
||||||
with the array population.
|
with the array population.
|
||||||
|
|
||||||
%package -n %{libname}%{somajor}
|
%package -n %libname
|
||||||
Summary: Dynamic libraries for Judy
|
Summary: Dynamic libraries for Judy
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description -n %{libname}%{somajor}
|
%description -n %libname
|
||||||
Judy is a C library that provides a state-of-the-art core technology that implements
|
Judy is a C library that provides a state-of-the-art core technology that implements
|
||||||
a sparse dynamic array. Judy arrays are declared simply with a null pointer. A Judy
|
a sparse dynamic array. Judy arrays are declared simply with a null pointer. A Judy
|
||||||
array consumes memory only when it is populated, yet can grow to take advantage
|
array consumes memory only when it is populated, yet can grow to take advantage
|
||||||
@ -64,7 +61,7 @@ with the array population.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for Judy
|
Summary: Development files for Judy
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libname}%{somajor} = %{version}
|
Requires: %libname = %version
|
||||||
Recommends: %{name}-doc
|
Recommends: %{name}-doc
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -73,6 +70,9 @@ This package holds the development files for Judy.
|
|||||||
%package doc
|
%package doc
|
||||||
Summary: Development files for Judy
|
Summary: Development files for Judy
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
|
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version}
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains documentation about Judy library and examples.
|
This package contains documentation about Judy library and examples.
|
||||||
@ -83,13 +83,14 @@ This package contains documentation about Judy library and examples.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make
|
# not parallel safe
|
||||||
|
make -j1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make install DESTDIR="%buildroot"
|
||||||
install -dD -m 0755 %{buildroot}%{_docdir}/%{name}
|
install -dD -m 0755 %{buildroot}%{_docdir}/%{name}
|
||||||
install -m 0644 \
|
install -m 0644 \
|
||||||
AUTHORS COPYING ChangeLog \
|
AUTHORS COPYING ChangeLog \
|
||||||
@ -103,22 +104,19 @@ find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|||||||
|
|
||||||
%fdupes -s %{buildroot}/%{_mandir}
|
%fdupes -s %{buildroot}/%{_mandir}
|
||||||
|
|
||||||
%clean
|
%post -n %libname -p /sbin/ldconfig
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%post -n %{libname}%{somajor} -p /sbin/ldconfig
|
%postun -n %libname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{libname}%{somajor} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/%{name}.h
|
%{_includedir}/%{name}.h
|
||||||
%{_libdir}/%{libname}.so
|
%{_libdir}/libJudy.so
|
||||||
%{_mandir}/man3/J*
|
%{_mandir}/man3/J*
|
||||||
|
|
||||||
%files -n %{libname}%{somajor}
|
%files -n %libname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/%{libname}.so.*
|
%{_libdir}/libJudy.so.1*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user