summaryrefslogtreecommitdiff
path: root/bibcount.spec
blob: 2fc8a2050e070c717eb09d493525cde707f5d87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%include	/usr/lib/rpm/macros.perl
Summary:	Counts bibliography entries by type
Summary(pl.UTF-8):	Zliczanie wpisów bibliografii w zależności od rodzaju
Name:		bibcount
Version:	1.0
Release:	1
License:	unknown
Group:		Applications
Source0:	http://www.ecst.csuchico.edu/~jacobsd/bib/archives/%{name}
# Source0-md5:	6ef4985c4e5fbd5780c6d186c17add08
URL:		http://www.ecst.csuchico.edu/~jacobsd/bib/tools/bibtex.html
BuildRequires:	perl-base
BuildRequires:	rpm-perlprov
BuildRequires:	sed >= 4.0
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Counts bibliography entries by type.

%description -l pl.UTF-8
bibcount zlicza wpisy bibliografii w zależności od rodzaju.

%prep

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}

install %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}
sed -i -e 's#/usr/local/bin/perl#/usr/bin/perl#' $RPM_BUILD_ROOT%{_bindir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*