- Rename macro soname to sover
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl?expand=0&rev=34
This commit is contained in:
parent
58cf9ad29a
commit
e3c3f9f43a
@ -3,6 +3,7 @@ Mon Mar 25 16:58:41 UTC 2019 - olaf@aepfle.de
|
||||
|
||||
- Install pkgconfig into libdir instead of datadir with libyajl-pkgconfig.patch
|
||||
- Use autosetup and cmake_build macro
|
||||
- Rename macro soname to sover
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 27 11:44:33 CEST 2018 - kukuk@suse.de
|
||||
|
20
libyajl.spec
20
libyajl.spec
@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%define soname 2
|
||||
%define sover 2
|
||||
Name: libyajl
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
@ -44,18 +44,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
|
||||
small validating JSON generator.
|
||||
|
||||
%package -n %{name}%{soname}
|
||||
%package -n %{name}%{sover}
|
||||
Summary: Yet Another JSON Library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{name}%{soname}
|
||||
%description -n %{name}%{sover}
|
||||
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
|
||||
small validating JSON generator.
|
||||
|
||||
%package -n %{name}-devel
|
||||
Summary: Yet Another JSON Library (Development Environment)
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}%{soname} = %{version}
|
||||
Requires: %{name}%{sover} = %{version}
|
||||
|
||||
%description -n %{name}-devel
|
||||
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
|
||||
@ -79,7 +79,7 @@ against %{name}.
|
||||
%package -n yajl
|
||||
Summary: Yet Another JSON Library Tools
|
||||
Group: Productivity/Text/Utilities
|
||||
Requires: %{name}%{soname} = %{version}
|
||||
Requires: %{name}%{sover} = %{version}
|
||||
|
||||
%description -n yajl
|
||||
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
|
||||
@ -102,15 +102,15 @@ install -m644 %{SOURCE2} %{SOURCE3} %{buildroot}/%{_mandir}/man1
|
||||
%check
|
||||
make %{?_smp_mflags} test
|
||||
|
||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||
%post -n %{name}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
||||
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{name}%{soname}
|
||||
%files -n %{name}%{sover}
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%{_libdir}/libyajl.so.%{soname}
|
||||
%{_libdir}/libyajl.so.%{soname}.*
|
||||
%{_libdir}/libyajl.so.%{sover}
|
||||
%{_libdir}/libyajl.so.%{sover}.*
|
||||
|
||||
%files -n %{name}-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user