From 1f261238751046a14ace00f5de0899c15dbf4821f2c0f61849b3205777bc4460 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 24 Apr 2016 09:10:41 +0000 Subject: [PATCH] Accepting request 390796 from home:pluskalm:branches:Base:System - Split shared libraries (boo#976068) - Move info handling to preun section - Do not ship .la file OBS-URL: https://build.opensuse.org/request/show/390796 OBS-URL: https://build.opensuse.org/package/show/Base:System/autogen?expand=0&rev=40 --- autogen.changes | 7 +++++ autogen.spec | 77 ++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 67 insertions(+), 17 deletions(-) diff --git a/autogen.changes b/autogen.changes index 5a92452..a9f2da7 100644 --- a/autogen.changes +++ b/autogen.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 19 08:38:13 UTC 2016 - mpluskal@suse.com + +- Split shared libraries (boo#976068) +- Move info handling to preun section +- Do not ship .la file + ------------------------------------------------------------------- Mon Dec 7 10:48:12 UTC 2015 - mpluskal@suse.com diff --git a/autogen.spec b/autogen.spec index e16a221..1bc1dd2 100644 --- a/autogen.spec +++ b/autogen.spec @@ -1,7 +1,7 @@ # # spec file for package autogen # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%define libname libopts25 Name: autogen Version: 5.18.7 Release: 0 @@ -35,15 +36,43 @@ BuildRequires: makeinfo BuildRequires: pkg-config BuildRequires: xz Requires(post): %{install_info_prereq} -Requires(postun): %{install_info_prereq} +Requires(preun): %{install_info_prereq} +Requires: %{libname}-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description AutoGen is a tool designed for generating program files that contain repetitive text with varied substitutions. Its goal is to simplify the maintenance of programs that contain large amounts of repetitious text. -This is especially valuable if there are several blocks of such text -that must be kept synchronized in parallel tables. +This is especially valuable if there are several blocks of such text that +must be kept synchronized in parallel tables. + +%package -n %{libname} +Summary: Shared library libopt +Group: System/Libraries + +%description -n %{libname} +AutoGen is a tool designed for generating program files that contain +repetitive text with varied substitutions. Its goal is to simplify the +maintenance of programs that contain large amounts of repetitious text. +This is especially valuable if there are several blocks of such text that +must be kept synchronized in parallel tables. + +This package contains shared library libopts + +%package -n %{libname}-devel +Summary: Development files for libopt +Group: Development/Languages/C and C++ +Requires: %{libname} = %{version}-%{release} + +%description -n %{libname}-devel +AutoGen is a tool designed for generating program files that contain +repetitive text with varied substitutions. Its goal is to simplify the +maintenance of programs that contain large amounts of repetitious text. +This is especially valuable if there are several blocks of such text that +must be kept synchronized in parallel tables. + +This package contains devel files for libopts %prep %setup -q @@ -56,31 +85,45 @@ that must be kept synchronized in parallel tables. make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +make %{?_smp_mflags} DESTDIR=%{buildroot} install +find %{buildroot} -type f -name "*.la" -delete -print %fdupes -s %{buildroot}%{_datadir} %check make %{?_smp_mflags} check %post -/sbin/ldconfig -%install_info --info-dir=%{_infodir} %{_infodir}/autogen.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/autogen.info%{ext_info} -%postun -/sbin/ldconfig -%install_info_delete --info-dir=%{_infodir} %{_infodir}/autogen.info.gz +%preun +%install_info_delete --info-dir=%{_infodir} %%{_infodir}/autogen.info%{ext_info} + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig %files %defattr(-, root, root) %doc NEWS ChangeLog -%{_bindir}/* -%{_includedir}/* -%{_libdir}/lib* +%{_bindir}/autogen +%{_bindir}/autoopts-config +%{_bindir}/columns +%{_bindir}/getdefs +%{_bindir}/xml2ag %{_libdir}/autogen -%{_libdir}/pkgconfig/*.pc -%{_mandir}/man?/*.gz -%{_datadir}/aclocal/* +%{_mandir}/man1/*%{ext_man} +%{_infodir}/*%{ext_info} %{_datadir}/autogen -%{_infodir}/*.gz + +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/libopts.so.* + +%files -n %{libname}-devel +%defattr(-,root,root) +%{_libdir}/libopts.so +%{_includedir}/* +%{_mandir}/man3/*%{ext_man} +%{_datadir}/aclocal/* +%{_libdir}/pkgconfig/*.pc %changelog