# # spec file for package gwenhywfar (Version 3.11.3) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: gwenhywfar Version: 3.11.3 Release: 1 Url: http://gwenhywfar.sourceforge.net/ Group: System/Libraries License: LGPLv2.1+ Summary: Multiplatform Helper Library for Other Libraries Source: %{name}-%{version}.tar.bz2 BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gnutls-devel BuildRequires: libgcrypt-devel BuildRequires: libopenssl-devel BuildRequires: pkg-config # For doc graphs BuildRequires: graphviz BuildRequires: graphviz-gd BuildRequires: xorg-x11-fonts BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Gwenhywfar is a base library used to provide OS abstraction functions for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some often needed functions (for example, handling and parsing of configuration files, reading and writingof XML files, and interprocess communication). %package tools License: LGPLv2.1+ Group: System/Libraries Summary: Multiplatform Helper Library for Other Libraries - Tools Requires: libgwenhywfar47 = %{version} %description tools Gwenhywfar is a base library used to provide OS abstraction functions for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some often needed functions (for example, for handling and parsing of configuration files, reading and writing of XML files, and interprocess communication). %package -n libgwenhywfar47-plugins License: LGPLv2.1+ Group: System/Libraries Summary: Multiplatform Helper Library for Other Libraries - Plugins Requires: %{name} = %{version} Provides: gwenhywfar47 = %{version} Obsoletes: gwenhywfar47 < %{version} %description -n libgwenhywfar47-plugins Gwenhywfar is a base library used to provide OS abstraction functions for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some often needed functions (for example, for handling and parsing of configuration files, reading and writing of XML files, and interprocess communication). %package -n libgwenhywfar47 License: LGPLv2.1+ Group: System/Libraries Summary: Multiplatform Helper Library for Other Libraries Requires: %{name}-lang = %{version} # Needed to make lang package installable Provides: %{name} = %{version} Recommends: libgwenhywfar47-plugins = %{version} %description -n libgwenhywfar47 Gwenhywfar is a base library used to provide OS abstraction functions for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some often needed functions (for example, for handling and parsing of configuration files, reading and writing of XML files, and interprocess communication). %package devel License: LGPLv2.1+ Group: Development/Libraries/C and C++ Summary: Multi-Platform Helper Library for Other Libraries Requires: libgwenhywfar47 = %{version} Requires: glibc-devel %description devel Gwenhywfar is a base library used to provide OS abstraction functions for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some often needed functions (e.g. for handling and parsing of configuration files, reading/writing of XML files, interprocess communication etc). %lang_package %prep %setup -q %build %configure\ --enable-release\ --enable-full-doc\ --with-docpath=%{_datadir}/%{name}/apidoc\ --with-openssl-libs=%{_libdir} \ --disable-static \ --with-pic make %{?jobs:-j%jobs} make srcdoc %{?jobs:-j%jobs} %install %makeinstall %makeinstall install-srcdoc pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/apidoc # we don't want another 'gwenhywfar' dir below docpath %__mv %{name}/* ./ rm -rf %{name} # remove empty files `find -maxdepth 1 -type f -empty -print0 | xargs -0 echo %__rm -f` popd find %{buildroot} -type f -name "*.la" -delete -print %find_lang %{name} %fdupes $RPM_BUILD_ROOT%{_datadir}/%{name}/apidoc %clean rm -rf $RPM_BUILD_ROOT %post -n libgwenhywfar47 -p /sbin/ldconfig %postun -n libgwenhywfar47 -p /sbin/ldconfig %files tools %defattr (-, root, root) %{_bindir}/gct-tool %{_bindir}/mklistdoc %{_bindir}/typemaker %{_bindir}/typemaker2 %{_bindir}/xmlmerge %{_datadir}/gwenhywfar/typemaker2/ %files -n libgwenhywfar47-plugins %defattr (-, root, root) %{_libdir}/gwenhywfar/plugins/47/* %files -n libgwenhywfar47 %defattr (-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{_libdir}/*.so.* %dir %{_datadir}/gwenhywfar/ %{_datadir}/gwenhywfar/ca-bundle.crt %dir %{_libdir}/gwenhywfar %dir %{_libdir}/gwenhywfar/plugins %dir %{_libdir}/gwenhywfar/plugins/47 %files devel %defattr (-, root, root) %{_bindir}/*-config %{_datadir}/aclocal/*.m4 %doc %{_datadir}/gwenhywfar/apidoc %{_includedir}/gwenhywfar3/ %{_libdir}/*.so %{_libdir}/pkgconfig/gwenhywfar.pc %files lang -f %{name}.lang %changelog