From 00963ac9339a13eefd2ab1ca42b1f72af12d3cac Mon Sep 17 00:00:00 2001 From: Christopher Engelhard Date: Jul 22 2020 16:37:29 +0000 Subject: add specfile --- diff --git a/hellocopr.spec b/hellocopr.spec new file mode 100644 index 0000000..e57a50c --- /dev/null +++ b/hellocopr.spec @@ -0,0 +1,50 @@ +%global srcname copr-tito-quickdoc + +Name: hellocopr +Version: 0.0.0 +Release: 0%{?dist} +License: GPLv3 +Summary: A trivial python 3 program for demonstrating RPM packaging +Url: https://pagure.io/%{srcname} +# Sources can be obtained by +# git clone https://pagure.io/copr-tito-quickdoc +# cd copr-tito-quickdoc +# tito build --tgz +Source0: %{name}-%{version}.tar.gz + +BuildArch: noarch + +%if 0%{?el6} +BuildRequires: python34-devel +BuildRequires: python34-setuptools +%else +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%endif + +%description +Hellocopr is a very simple demonstration program that does nothing but display +some text on the command line. It is used as an example for automatic RPM +packaging using tito and Fedora's Copr user repository. + +#-- PREP, BUILD & INSTALL -----------------------------------------------------# +%prep +%autosetup + +%build +%py3_build + +%install +%py3_install + +#-- FILES ---------------------------------------------------------------------# +%files +%doc README.md +%license LICENSE +%{_bindir}/hellocopr +%{python3_sitelib}/%{name}-*.egg-info/ +%{python3_sitelib}/%{name}/ + +#-- CHANGELOG -----------------------------------------------------------------# +%changelog +