Browse Source

updated 2 packages

clamav-0.104.0-1

json-c-0.15-1
Tomohiro "Tomo-p" KATO 2 years ago
parent
commit
1e7e61fa71
2 changed files with 39 additions and 52 deletions
  1. 22 22
      c/clamav/clamav-vl.spec
  2. 17 30
      j/json-c/json-c-vl.spec

+ 22 - 22
c/clamav/clamav-vl.spec

@@ -5,12 +5,10 @@
 
 
 %define milter 1
 %define milter 1
 
 
-%define pcre_cflags %(pcre-config --cflags)
-
 Summary: Clam AntiVirus
 Summary: Clam AntiVirus
 Summary(ja): Clamアンチウィルススキャナ
 Summary(ja): Clamアンチウィルススキャナ
 Name: clamav
 Name: clamav
-Version: 0.103.3
+Version: 0.104.0
 Release: 1%{?_dist_release}%{?with_systemd:.systemd}
 Release: 1%{?_dist_release}%{?with_systemd:.systemd}
 Group: security
 Group: security
 Vendor: Project Vine
 Vendor: Project Vine
@@ -32,10 +30,13 @@ Source100:  clamonacc.service
 Source330:  clamav-milter.systemd
 Source330:  clamav-milter.systemd
 #for scanner-systemd/server-systemd
 #for scanner-systemd/server-systemd
 Source530:  clamd.service
 Source530:  clamd.service
+Source550:  clamav-freshclam.service
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake
 BuildRequires: bzip2-devel, curl-devel > 7.10.0, gmp-devel, ncurses-devel
 BuildRequires: bzip2-devel, curl-devel > 7.10.0, gmp-devel, ncurses-devel
-BuildRequires: openssl-devel, pcre-devel, libxml2-devel, zlib-devel
+BuildRequires: openssl-devel, pcre2-devel, libxml2-devel, zlib-devel
+BuildRequires: json-c-devel
 %if %{with external_llvm}
 %if %{with external_llvm}
 BuildRequires: llvm-devel
 BuildRequires: llvm-devel
 %endif
 %endif
@@ -46,6 +47,7 @@ BuildRequires: libmilter-devel
 Requires: logrotate
 Requires: logrotate
 Requires(pre): shadow-utils, grep
 Requires(pre): shadow-utils, grep
 %if %{with systemd}
 %if %{with systemd}
+#BuildRequires: systemd-devel
 %{?systemd_requires}
 %{?systemd_requires}
 %else
 %else
 Requires(post): chkconfig
 Requires(post): chkconfig
@@ -111,25 +113,20 @@ export CLAMAV_MILTER_LIBS="-lpthread -lmilter"
 export have_milter=yes
 export have_milter=yes
 %endif
 %endif
 
 
-CFLAGS="%{pcre_cflags}" \
-%configure \
-	--disable-rpath \
-	--disable-silent-rules \
-	--enable-clamdtop \
-	--disable-clamav \
-	--enable-id-check \
-	--enable-dns \
-%if %{with external_llvm}
-	--enable-llvm \
-%else
-	--with-system-llvm=no \
-%endif
+%cmake \
+	-DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc \
+	-DAPP_CONFIG_DIRECTORY:STRING=/etc \
+	-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
+	-DCMAKE_SKIP_RPATH:BOOL=ON \
+	-DENABLE_TESTS:BOOL=OFF \
 %if %{?milter}
 %if %{?milter}
-	--enable-milter \
+	-DENABLE_MILTER:BOOL=ON \
+%else
+	-DENABLE_MILTER:BOOL=OFF \
 %endif
 %endif
-	--with-dbdir=%{dbdir}
+	-DDATABASE_DIRECTORY:STRING=%{dbdir}
 
 
-make %{?_smp_mflags}
+%cmake_build
 
 
 
 
 %install
 %install
@@ -139,13 +136,14 @@ mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
 mkdir -p %{buildroot}%{_initdir}
 mkdir -p %{buildroot}%{_initdir}
 mkdir -p %{buildroot}%{_localstatedir}/run/clamav
 mkdir -p %{buildroot}%{_localstatedir}/run/clamav
 mkdir -p %{buildroot}%{_localstatedir}/log/clamav
 mkdir -p %{buildroot}%{_localstatedir}/log/clamav
-make install DESTDIR=%{buildroot} transform='s,x,x,'
+%cmake_install
 
 
 %if %{with systemd}
 %if %{with systemd}
 rm -f %{buildroot}%{_unitdir}/clamav-daemon.s*
 rm -f %{buildroot}%{_unitdir}/clamav-daemon.s*
 rm -f %{buildroot}%{_unitdir}/clamav-clamonacc.s*
 rm -f %{buildroot}%{_unitdir}/clamav-clamonacc.s*
 install -Dpm 0644 %{SOURCE100} %{buildroot}%{_unitdir}/clamonacc.service
 install -Dpm 0644 %{SOURCE100} %{buildroot}%{_unitdir}/clamonacc.service
 install -Dpm 0644 %{SOURCE530} %{buildroot}%{_unitdir}/clamd.service
 install -Dpm 0644 %{SOURCE530} %{buildroot}%{_unitdir}/clamd.service
+install -Dpm 0644 %{SOURCE550} %{buildroot}%{_unitdir}/clamav-freshclam.service
 mkdir -p %{buildroot}%{_tmpfilesdir}
 mkdir -p %{buildroot}%{_tmpfilesdir}
 cat << EOF > %{buildroot}%{_tmpfilesdir}/clamav.conf
 cat << EOF > %{buildroot}%{_tmpfilesdir}/clamav.conf
 d %{_rundir}/clamav 0710 clamav clamav
 d %{_rundir}/clamav 0710 clamav clamav
@@ -295,7 +293,6 @@ fi
 %defattr(-,root,root)
 %defattr(-,root,root)
 %license COPYING*
 %license COPYING*
 %doc NEWS* README* examples
 %doc NEWS* README* examples
-%doc docs/UserManual
 %if %{with systemd}
 %if %{with systemd}
 %{_unitdir}/clamav-freshclam.service
 %{_unitdir}/clamav-freshclam.service
 %{_unitdir}/clamd.service
 %{_unitdir}/clamd.service
@@ -347,6 +344,9 @@ fi
 
 
 
 
 %changelog
 %changelog
+* Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.104.0-1
+- new upstream release.
+
 * Tue Jun 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.103.3-1
 * Tue Jun 22 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.103.3-1
 - new upstream release.
 - new upstream release.
 
 

+ 17 - 30
j/json-c/json-c-vl.spec

@@ -1,17 +1,15 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
 
-%define pkg_version	0.14
-%define pkg_date	20200419
+%define pkg_date	20200726
 
 
 Summary:	A JSON implementation in C
 Summary:	A JSON implementation in C
 Name:		json-c
 Name:		json-c
-Version:	%{pkg_version}
+Version:	0.15
 Release:	1%{?_dist_release}
 Release:	1%{?_dist_release}
-Group:		System Environment/Libraries
+Group:		system
 Vendor:		Project Vine
 Vendor:		Project Vine
 Distribution:	Vine Linux
 Distribution:	Vine Linux
 
 
-
 License:	MIT
 License:	MIT
 URL:		https://github.com/json-c/json-c/wiki
 URL:		https://github.com/json-c/json-c/wiki
 Source0: 	https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
 Source0: 	https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
@@ -20,7 +18,6 @@ Patch1000:	CVE-2020-12762.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 BuildRequires:	cmake
 BuildRequires:	cmake
 
 
-
 %description
 %description
 JSON-C implements a reference counting object model that allows you to easily
 JSON-C implements a reference counting object model that allows you to easily
 construct JSON objects in C, output them as JSON formatted strings and parse
 construct JSON objects in C, output them as JSON formatted strings and parse
@@ -29,7 +26,7 @@ JSON formatted strings back into the C representation of JSON objects.
 
 
 %package devel
 %package devel
 Summary:	Development files for json-c
 Summary:	Development files for json-c
-Group:		Development/Libraries
+Group:		programming
 Requires:	%{name} = %{version}-%{release}
 Requires:	%{name} = %{version}-%{release}
 Requires:	pkgconfig
 Requires:	pkgconfig
 
 
@@ -40,7 +37,7 @@ for writing applications that are using json-c.
 
 
 %package doc
 %package doc
 Summary:	Documentation for json-c
 Summary:	Documentation for json-c
-Group:		Documentation
+Group:		documentation
 Requires:	%{name} = %{version}-%{release}
 Requires:	%{name} = %{version}-%{release}
 BuildArch:	noarch
 BuildArch:	noarch
 
 
@@ -50,7 +47,7 @@ This package contains documentation for json-c.
 
 
 %package -n compat32-%{name}
 %package -n compat32-%{name}
 Summary:	A JSON implementation in C
 Summary:	A JSON implementation in C
-Group:		System Environment/Libraries
+Group:		system,legacy
 Requires:	%{name} = %{version}-%{release}
 Requires:	%{name} = %{version}-%{release}
 
 
 %description -n compat32-%{name}
 %description -n compat32-%{name}
@@ -60,7 +57,7 @@ JSON formatted strings back into the C representation of JSON objects.
 
 
 %package -n compat32-%{name}-devel
 %package -n compat32-%{name}-devel
 Summary:	Development files for json-c
 Summary:	Development files for json-c
-Group:		Development/Libraries
+Group:		programming,legacy
 Requires:	compat32-%{name} = %{version}-%{release}
 Requires:	compat32-%{name} = %{version}-%{release}
 Requires:	pkgconfig
 Requires:	pkgconfig
 
 
@@ -69,51 +66,37 @@ This package contains the libraries and header files that are needed
 for writing applications that are using json-c.
 for writing applications that are using json-c.
 
 
 
 
+%debug_package
+
+
 %prep
 %prep
 %setup -q -n json-c-json-c-%{version}-%{pkg_date}
 %setup -q -n json-c-json-c-%{version}-%{pkg_date}
-%patch1000 -p1
 
 
 
 
 %build
 %build
-mkdir -p build
-pushd build
 %cmake \
 %cmake \
 	-DBUILD_SHARED_LIBS=ON \
 	-DBUILD_SHARED_LIBS=ON \
 	-DBUILD_STATIC_LIBS=OFF \
 	-DBUILD_STATIC_LIBS=OFF \
 	-DENABLE_RDRAND=ON \
 	-DENABLE_RDRAND=ON \
 	../
 	../
-make %{_smp_mflags}
-popd
+%cmake_build
 
 
 
 
 %install
 %install
 %{__rm} -rf $RPM_BUILD_ROOT
 %{__rm} -rf $RPM_BUILD_ROOT
-pushd build
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%cmake_install
 
 
 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
-popd
 
 
 
 
 %check
 %check
-pushd build
-make %{_smp_mflags} test
-popd
+%ctest
 
 
 
 
 %clean
 %clean
 %{__rm} -rf $RPM_BUILD_ROOT
 %{__rm} -rf $RPM_BUILD_ROOT
 
 
 
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%post -n compat32-%{name} -p /sbin/ldconfig
-
-%postun -n compat32-%{name} -p /sbin/ldconfig
-
-
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %license COPYING
 %license COPYING
@@ -145,6 +128,10 @@ popd
 
 
 
 
 %changelog
 %changelog
+* Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.15-1
+- new upstream release.
+- dropped Patch1000: fixed in upstream.
+
 * Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.14-1
 * Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.14-1
 - updated to 0.14.
 - updated to 0.14.
 - added Patch1000 to fix CVE-2020-12762.
 - added Patch1000 to fix CVE-2020-12762.