fixed url and other specfile fixes [release 2.1.0-2mamba;Tue Mar 04 2025]

This commit is contained in:
Silvan Calarco 2025-03-04 17:14:48 +01:00
parent 844b94085d
commit b4a34190fe

View File

@ -3,21 +3,19 @@
Name: libyajl
Version: 2.1.0
Release: 1mamba
Summary: Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C
Release: 2mamba
Summary: A small event-driven (SAX-style) JSON parser written in ANSI C
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: http://lloyd.github.com/yajl/
# source code is dowloadable here https://nodeload.github.com/lloyd/yajl/tarball/2.0.1
Source: http://github.com/lloyd/yajl/tarball/%{majver}/yajl-%{majver}-0-g%{minver}.tar.gz
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/lloyd/yajl
Source: https://github.com/lloyd/yajl.git/%{version}/yajl-%{version}.tar.bz2
License: ISC
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator. YAJL is released under the ISC license.
@ -26,8 +24,6 @@ Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser w
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
## note: you can add this requirement if .pc files are provided by this package
#Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
@ -40,32 +36,24 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q -c
mv lloyd-yajl-* lloyd-yajl
%setup -q -n yajl-%{version}
%build
cd lloyd-yajl
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd lloyd-yajl
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libyajl.so.*
%doc lloyd-yajl/COPYING
%doc COPYING
%files devel
%defattr(-,root,root)
@ -74,7 +62,7 @@ cd lloyd-yajl
%{_libdir}/libyajl.so
%{_libdir}/libyajl_s.a
%{_datadir}/pkgconfig/yajl.pc
%doc lloyd-yajl/ChangeLog lloyd-yajl/README lloyd-yajl/TODO
%doc ChangeLog README TODO
%files tools
%defattr(-,root,root)
@ -82,6 +70,9 @@ cd lloyd-yajl
%{_bindir}/json_verify
%changelog
* Tue Mar 04 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
- fixed url and other specfile fixes
* Mon Mar 31 2014 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist