[bti/el5] Switch back to using pre-generated tarballs
Michel Alexandre Salim
salimma at fedoraproject.org
Sat Jun 23 01:58:33 UTC 2012
commit f3da24601fbc6f8d7fad73050d3e958823cd22b2
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Sat Jun 23 08:56:09 2012 +0700
Switch back to using pre-generated tarballs
.gitignore | 2 +-
bti.spec | 17 ++++++++---------
sources | 2 +-
3 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 88a2ee7..c1f1043 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/gregkh-bti-032-0-gfabeb14.tar.gz
+/bti-032.tar.xz
diff --git a/bti.spec b/bti.spec
index 6732baf..45d02bb 100644
--- a/bti.spec
+++ b/bti.spec
@@ -1,6 +1,3 @@
-%global upstream gregkh
-%global commit_hash fabeb14
-
Name: bti
Version: 032
Release: 1%{?dist}
@@ -9,8 +6,9 @@ Summary: Bash Twitter/Identi.ca Idiocy
Group: Applications/Internet
License: GPLv2
URL: https://github.com/gregkh/bti
+# for downloading from github:
# wget --content-disposition %%{url}/tarball/%%{version}
-Source0: %{upstream}-%{name}-%{version}-0-g%{commit_hash}.tar.gz
+Source0: http://www.kernel.org/pub/software/web/bti/bti-%{version}.tar.xz
Source1: README.identica
%if 0%{?el5}
@@ -22,9 +20,9 @@ BuildRequires: curl-devel
%else
BuildRequires: libcurl-devel
%endif
-BuildRequires: autoconf automake
+# for building from github
+# BuildRequires: autoconf automake
BuildRequires: liboauth-devel libxml2-devel pcre-devel
-#Requires:
%description
Allows you to pipe your bash input to twitter or identi.ca in an easy
@@ -32,12 +30,13 @@ and fast manner to annoy the whole world.
%prep
-%setup -q -n %{upstream}-%{name}-758e50d
+%setup -q
cp -p %{SOURCE1} .
%build
-autoreconf --install --symlink
+# for building from github
+# autoreconf --install --symlink
%configure
make %{?_smp_mflags} LDFLAGS="-L%{_libdir}/readline5"
@@ -57,7 +56,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README README.identica RELEASE-NOTES
-%doc bti.example oath.keys
+%doc bti.example
# Own the directory so that we do not need to Require:
# bash-completion just for one file
%dir %{_sysconfdir}/bash_completion.d
diff --git a/sources b/sources
index e004dab..708b3a9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1e0d0b693fdeebec268004ba41701baf gregkh-bti-032-0-gfabeb14.tar.gz
+d3827e9b866307b306c4bdf273439856 bti-032.tar.xz
More information about the scm-commits
mailing list