- init
authorBartosz Świątek <shadzik@tld-linux.org>
Thu, 15 May 2014 18:09:16 +0000 (20:09 +0200)
committerBartosz Świątek <shadzik@tld-linux.org>
Thu, 15 May 2014 18:09:16 +0000 (20:09 +0200)
libjansson.spec [new file with mode: 0644]

diff --git a/libjansson.spec b/libjansson.spec
new file mode 100644 (file)
index 0000000..c8f9e86
--- /dev/null
@@ -0,0 +1,66 @@
+%define                realname        jansson
+
+Summary:       Jansson - JSON C Library
+Summary(pl.UTF-8):     Jansson - biblioteka JSON napisana w C
+Name:          libjansson
+Version:       2.6
+Release:       0.1
+License:       GPL
+Group:         Libraries
+Source0:       http://www.digip.org/jansson/releases/%{realname}-%{version}.tar.bz2
+# Source0-md5: c70a52488db623a26f7213c7c6b7c878
+URL:           http://www.digip.org/jansson/
+#BuildRequires:        -
+#Requires:     -
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Jansson is a C library for encoding, decoding and manipulating JSON 
+data.
+
+%description -l pl.UTF-8
+
+%package devel
+Summary:       Header files for %{name} library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       --without-static
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/%{name}.so.?
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}.so
+%{_includedir}/%{realname}.h
+%{_includedir}/%{realname}_config.h
+%{_pkgconfigdir}/%{realname}.pc