-
Notifications
You must be signed in to change notification settings - Fork 0
/
eolfix.spec
61 lines (51 loc) · 1.22 KB
/
eolfix.spec
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Define DATE to a date in YYYYMMDD format
# (e.g. 20021231) if you're building a CVS snapshot
# Use %nil if you are building a released version.
%define DATE %nil
Summary: End-of-line character fix utility.
Name: eolfix
Version: 0.2.0
%if "%DATE" == ""
Release: 1
Source: %{name}-%{version}.tar.bz2
%else
Release: 0.cvs%DATE.1
Source: %{name}-%DATE.tar.bz2
%endif
License: MIT
Group: Applications/System
URL: http://www.smithii.com/eolfix/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Eolfix is a end-of-line character fix utility.
%package -n eolfix
Summary: A command line EOL character fix utility.
Group: Applications/System
#Provides: dos2unix, unix2dos
#Obsoletes: dos2unix, unix2dos
%description -n eolfix
Eolfix will report and optionally correct end-of-line characters in ASCII text files.
%prep
%if "%DATE" == ""
%setup -q
%else
%setup -q -n %name
autogen.sh
%endif
%configure
%build
make
%install
rm -rf "$RPM_BUILD_ROOT"
make install DESTDIR="$RPM_BUILD_ROOT"
%clean
rm -rf $RPM_BUILD_ROOT
%files -n eolfix
%defattr(-,root,root)
%doc CHANGELOG.md NEWS AUTHORS README.md*
%{_bindir}/eolfix
%{_mandir}/man1/eolfix.1*
%changelog
* 2005-12-01 Ross Smith II <[email protected]>
- Initial release
- *: Version 0.1.0