Replace obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
5bf3df6d67
commit
0c9a8b5c04
@ -1,8 +1,7 @@
|
|||||||
Summary: Produces a document with syntax highlighting
|
Summary: Produces a document with syntax highlighting
|
||||||
Name: source-highlight
|
Name: source-highlight
|
||||||
Version: 3.1.8
|
Version: 3.1.8
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
Group: Development/Tools
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Source0: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
|
Source0: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
|
||||||
Source1: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz.sig
|
Source1: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz.sig
|
||||||
@ -10,8 +9,6 @@ URL: http://www.gnu.org/software/src-highlite/
|
|||||||
BuildRequires: bison, flex, boost-devel
|
BuildRequires: bison, flex, boost-devel
|
||||||
BuildRequires: help2man, ctags, chrpath, pkgconfig(bash-completion)
|
BuildRequires: help2man, ctags, chrpath, pkgconfig(bash-completion)
|
||||||
BuildRequires: gcc, gcc-c++
|
BuildRequires: gcc, gcc-c++
|
||||||
Requires(post): info
|
|
||||||
Requires(preun): info
|
|
||||||
Requires: ctags
|
Requires: ctags
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -24,9 +21,7 @@ escape sequences as output format.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for source-highlight
|
Summary: Development files for source-highlight
|
||||||
Group: Development/Libraries
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Requires: pkgconfig
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development files for source-highlight
|
Development files for source-highlight
|
||||||
@ -37,10 +32,10 @@ Development files for source-highlight
|
|||||||
%build
|
%build
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--with-boost-regex=boost_regex
|
--with-boost-regex=boost_regex
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
|
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/doc/ docs
|
mv $RPM_BUILD_ROOT%{_datadir}/doc/ docs
|
||||||
%{__sed} -i 's/\r//' docs/source-highlight/*.css
|
%{__sed} -i 's/\r//' docs/source-highlight/*.css
|
||||||
@ -59,16 +54,6 @@ mv $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/source-highlight \
|
|||||||
$RPM_BUILD_ROOT$bashcompdir/
|
$RPM_BUILD_ROOT$bashcompdir/
|
||||||
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/install-info %{_infodir}/source-highlight.info \
|
|
||||||
%{_infodir}/dir 2>/dev/null || :
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/install-info --delete %{_infodir}/source-highlight.info \
|
|
||||||
%{_infodir}/dir 2>/dev/null || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc docs/source-highlight/*
|
%doc docs/source-highlight/*
|
||||||
%{_bindir}/cpp2html
|
%{_bindir}/cpp2html
|
||||||
@ -92,6 +77,9 @@ fi
|
|||||||
%{_includedir}/srchilite/*.h
|
%{_includedir}/srchilite/*.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.1.8-19
|
||||||
|
- Replace obsolete scriptlets
|
||||||
|
|
||||||
* Mon Jul 16 2018 Adrian Reber <adrian@lisas.de> - 3.1.8-18
|
* Mon Jul 16 2018 Adrian Reber <adrian@lisas.de> - 3.1.8-18
|
||||||
- Added BR gcc, gcc-c++
|
- Added BR gcc, gcc-c++
|
||||||
- Small SPEC file cleanups
|
- Small SPEC file cleanups
|
||||||
|
Loading…
Reference in New Issue
Block a user