#
# Conditional build:
-%bcond_without static_libs # don't build static libraries
+%bcond_without static_libs # static library
#
Summary: A JSON implementation in C
+Summary(pl.UTF-8): Implementacja JSON w C
Name: libfastjson
Version: 0.99.8
-Release: 1
+Release: 2
License: MIT
Group: Libraries
-Source0: http://download.rsyslog.com/libfastjson/%{name}-%{version}.tar.gz
+Source0: https://download.rsyslog.com/libfastjson/%{name}-%{version}.tar.gz
# Source0-md5: fe7b4eae1bf40499f6f92b51d7e5899e
URL: https://github.com/rsyslog/libfastjson
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
formatted strings and parse JSON formatted strings back into the C
representation of JSON objects.
+%description -l pl.UTF-8
+LIBFASTJSON implementuje model obiektów ze zliczaniem referencji,
+pozwalający na łatwe konstruowanie obiektów JSON w C, wypisywanie ich
+jako sformatowanych łańcuchów JSON oraz analizowanie sformatowanych
+łańcuchów JSON z powrotem do reprezentacji obiektów JSON w C
+
%package devel
-Summary: Header files for %{name} library
-Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
+Summary: Header files for LIBFASTJSON library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LIBFASTJSON
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-Header files for %{name} library.
+Header files for LIBFASTJSON library.
%description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki %{name}.
+Pliki nagłówkowe biblioteki LIBFASTJSON.
%package static
-Summary: Static %{name} library
-Summary(pl.UTF-8): Statyczna biblioteka %{name}
+Summary: Static LIBFASTJSON library
+Summary(pl.UTF-8): Statyczna biblioteka LIBFASTJSON
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static %{name} library.
+Static LIBFASTJSON library.
%description static -l pl.UTF-8
-Statyczna biblioteka %{name}.
+Statyczna biblioteka LIBFASTJSON.
%prep
%setup -q
%build
%configure \
+ --disable-silent-rules \
%{!?with_static_libs:--disable-static}
-%{__make} V=1
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfastjson.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS README
-%attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/%{name}.so.4
+%doc AUTHORS COPYING ChangeLog README.html
+%attr(755,root,root) %{_libdir}/libfastjson.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfastjson.so.4
%files devel
%defattr(644,root,root,755)
%doc ChangeLog NEWS
-%attr(755,root,root) %{_libdir}/%{name}.so
-%{_includedir}/%{name}
-%{_pkgconfigdir}/%{name}.pc
+%attr(755,root,root) %{_libdir}/libfastjson.so
+%{_includedir}/libfastjson
+%{_pkgconfigdir}/libfastjson.pc
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
-%{_libdir}/%{name}.a
+%{_libdir}/libfastjson.a
%endif