diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 13:44:35 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 13:44:35 -0800 |
commit | 0dbc2b9c9809a46b5efcd28c3d3953f22f1a9e90 (patch) | |
tree | a2ab96288af5b855864c7e88b13bca648ed6129d /packaging | |
parent | 5c9df53f92d8e35bacdff3dcc572f26d4157f663 (diff) | |
download | libksba-0dbc2b9c9809a46b5efcd28c3d3953f22f1a9e90.tar.gz libksba-0dbc2b9c9809a46b5efcd28c3d3953f22f1a9e90.tar.bz2 libksba-0dbc2b9c9809a46b5efcd28c3d3953f22f1a9e90.zip |
add packaging
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/libksba.spec | 79 | ||||
-rw-r--r-- | packaging/nld-build.diff | 50 |
2 files changed, 129 insertions, 0 deletions
diff --git a/packaging/libksba.spec b/packaging/libksba.spec new file mode 100644 index 0000000..9277b59 --- /dev/null +++ b/packaging/libksba.spec @@ -0,0 +1,79 @@ +Name: libksba +Version: 1.2.0 +Release: 1 +License: GPL-3.0+ +Summary: A X +Url: http://www.gnupg.org/aegypten/ +Group: Development/Libraries/C and C++ +# change also name and nfb +%define nld_build 0 +Source: libksba-%{version}.tar.bz2 +Patch1: nld-build.diff +BuildRequires: libgpg-error-devel >= 1.8 +BuildRequires: libtool +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +KSBA is a library to simplify the task of working with X.509 +certificates, CMS data, and related data. + +%package devel +License: GPL-2.0+ ; MIT +Summary: A X +Group: Development/Libraries/C and C++ +%if %nld_build +Conflicts: libksba-devel +%else +Requires: libgpg-error-devel +Requires: libksba = %{version} +Provides: libksba:/usr/include/ksba.h +%endif + +%description devel +KSBA is a library to simplify the task of working with X.509 +certificates, CMS data, and related data. + +This package contains the needed files to compile and link against the +libksba. + +%prep +%setup -q -n libksba-%{version} +%if %nld_build +%patch1 +%endif + +%build +autoreconf -fi +%configure --disable-static --with-pic +make %{?_smp_mflags} + +%check +make check + +%install +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc COPYING +%{_libdir}/libksba*.so.* + +%post devel +%install_info --info-dir=%{_infodir} %{_infodir}/ksba.info.gz + +%postun devel +%install_info_delete --info-dir=%{_infodir} %{_infodir}/ksba.info.gz + +%files devel +%defattr(-,root,root) +%{_bindir}/* +%{_libdir}/libksba*.so +%{_includedir}/* +%doc %{_infodir}/ksba* +%{_datadir}/aclocal/* + +%changelog diff --git a/packaging/nld-build.diff b/packaging/nld-build.diff new file mode 100644 index 0000000..321d6be --- /dev/null +++ b/packaging/nld-build.diff @@ -0,0 +1,50 @@ +--- configure.ac ++++ configure.ac +@@ -140,7 +140,7 @@ + + + # To be used in ksba-config +-KSBA_CONFIG_LIBS="-lksba" ++KSBA_CONFIG_LIBS="-lksba-nld" + KSBA_CONFIG_CFLAGS="" + AC_SUBST(KSBA_CONFIG_LIBS) + AC_SUBST(KSBA_CONFIG_CFLAGS) +--- src/Makefile.am ++++ src/Makefile.am +@@ -26,7 +26,7 @@ + BUILT_SOURCES = asn1-parse.c asn1-tables.c + bin_SCRIPTS = ksba-config + include_HEADERS = ksba.h +-lib_LTLIBRARIES = libksba.la ++lib_LTLIBRARIES = libksba-nld.la + + if ! CROSS_COMPILING + noinst_PROGRAMS = asn1-gentables ber-dump +@@ -46,12 +46,12 @@ + + + +-libksba_la_LDFLAGS = $(libksba_version_script_cmd) -version-info \ ++libksba_nld_la_LDFLAGS = $(libksba_version_script_cmd) -version-info \ + @LIBKSBA_LT_CURRENT@:@LIBKSBA_LT_REVISION@:@LIBKSBA_LT_AGE@ +-libksba_la_INCLUDES = -I$(top_srcdir)/lib +-libksba_la_DEPENDENCIES = $(srcdir)/libksba.vers ++libksba_nld_la_INCLUDES = -I$(top_srcdir)/lib ++libksba_nld_la_DEPENDENCIES = $(srcdir)/libksba.vers + +-libksba_la_SOURCES = \ ++libksba_nld_la_SOURCES = \ + ksba.h \ + reader.c reader.h \ + writer.c writer.h \ +--- tests/Makefile.am ++++ tests/Makefile.am +@@ -44,7 +44,7 @@ + + noinst_HEADERS = t-common.h + noinst_PROGRAMS = $(TESTS) t-cms-parser t-crl-parser t-dnparser t-ocsp +-LDADD = ../src/libksba.la $(GPG_ERROR_LIBS) ++LDADD = ../src/libksba-nld.la $(GPG_ERROR_LIBS) + + t_ocsp_SOURCES = t-ocsp.c sha1.c + |