Blob Blame History Raw
Name:           dh-make
# Squeeze
Version:       0.55

Release:        2%{?dist}
Summary:        Tool that converts source archives into Debian package source

Group:          Development/Tools
License:        GPLv3+
URL:            http://packages.qa.debian.org/d/dh-make.html
Source0:        http://ftp.de.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.gz
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch:      noarch

#BuildRequires:
Requires:       debhelper
Requires:       dpkg-devel
Requires:       %{_bindir}/make

%description
This package allows you to take a standard (or upstream) source
package and convert it into a format that will allow you to build
Debian packages.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/debhelper/dh_make/
install -m 755 dh_make %{buildroot}/%{_bindir}
cp -a lib/* %{buildroot}/%{_datadir}/debhelper/dh_make/

# One template rules file is missing exec permission
# Should report a (minor) bug to upstream
chmod a+x %{buildroot}/%{_datadir}/debhelper/dh_make/debiann/rules

# Remove zero-length file
rm -rf debian/examples
# Remove spurious exec permissions (this goes to doc)
chmod a-x debian/rules

for file in postinst.ex postrm.ex emacsen-remove.ex prerm.ex \
            preinst.ex emacsen-install.ex; do
    chmod 755 %{buildroot}/%{_datadir}/debhelper/dh_make/debian/$file
done

mkdir -p %{buildroot}/%{_mandir}/man1
install -m 644 -p dh_make.1 %{buildroot}/%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc debian/*
%{_bindir}/dh_make
%{_mandir}/man1/*.1*
%dir %{_datadir}/debhelper
%{_datadir}/debhelper/dh_make

%changelog
* Mon Oct 18 2010 Oron Peled <oron@actcom.co.il> - 0.55-2
- Minor changes to spec file: glob man pages, don't specify compression.

* Sun Oct 10 2010 Oron Peled <oron@actcom.co.il> - 0.55-1
- Bump to Squeeze version (0.55) as per review.

* Sat Jul 17 2010 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.46-2
- Fix package during review (#591192)

* Tue May 11 2010 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.46-1
- First package