[pastebinit] import the package

Lameire Alexis alexises at fedoraproject.org
Wed Aug 25 15:39:36 UTC 2010


commit 80370edeae704af983b31c66f0c5770d96bc90f6
Author: alexises <alexises at fedoraproject.org>
Date:   Wed Aug 25 17:30:21 2010 +0200

    import the package

 .gitignore             |    1 +
 10-drop_rafb.net.patch |   14 +++++++
 pastebinit.spec        |   91 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 107 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6daff39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pastebinit-1.1.tar.gz
diff --git a/10-drop_rafb.net.patch b/10-drop_rafb.net.patch
new file mode 100644
index 0000000..41d5f9b
--- /dev/null
+++ b/10-drop_rafb.net.patch
@@ -0,0 +1,14 @@
+Index: pastebinit/pastebinit.xml
+===================================================================
+--- pastebinit.orig/pastebinit.xml	2010-05-15 11:00:12.000000000 +0200
++++ pastebinit/pastebinit.xml	2010-05-15 11:00:44.000000000 +0200
+@@ -110,9 +110,6 @@
+         <para>http://1t2.us (including subdomains)</para>
+       </listitem> -->
+       <listitem>
+-        <para>http://rafb.net</para>
+-      </listitem>
+-      <listitem>
+         <para>http://slexy.org</para>
+       </listitem>
+       <listitem>
diff --git a/pastebinit.spec b/pastebinit.spec
new file mode 100644
index 0000000..8eb8c03
--- /dev/null
+++ b/pastebinit.spec
@@ -0,0 +1,91 @@
+Name:           pastebinit
+Version:        1.1
+Release:        4%{?dist}
+Summary:        Send anything you want directly to a pastebin from the command line
+
+Group:          Applications/Internet
+License:        GPLv2+
+URL:            https://launchpad.net/pastebinit
+Source0:        http://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
+#
+# Patch to delete deprecated RAFB pastebin reference on the manpage
+#
+Patch0:         http://patch-tracker.debian.org/patch/series/dl/%{name}/1.1-2/10-drop_rafb.net.patch
+
+BuildArch:      noarch
+BuildRequires:  docbook-style-xsl libxslt gettext
+Requires:       python-configobj
+
+%description
+A software that lets you send anything you want directly to a
+pastebin from the command line.  This software lets you send a file
+or simply the result of a command directly to the pastebin you want
+(if it's supported) and gives you the URL in return.
+
+%prep
+%setup -q
+%patch0 -p1 
+#
+# Change the location of pastebin config file from /etc/pastebin.d/
+# to /usr/share/pastebinit/ (unappropriate dir. name "pastebinit.d"
+# + FHS)
+# See https://bugs.launchpad.net/pastebinit/+bug/621923
+#
+sed -i "s|/etc/pastebin.d|%{_datadir}/%{name}|g" %{name} README
+sed -i "s|pastebin.d|%{name}|g" %{name} README
+
+%build
+# Generate the man page from docbook xml
+xsltproc -''-nonet %{_datadir}/sgml/docbook/xsl-stylesheets*/manpages/docbook.xsl pastebinit.xml 
+
+# Build translation
+pushd po
+make
+popd
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{_datadir}/
+cp -a pastebin.d %{buildroot}%{_datadir}
+rm %{buildroot}%{_datadir}/pastebin.d/yourpaste.net.conf
+mv %{buildroot}%{_datadir}/pastebin.d/ %{buildroot}%{_datadir}/%{name}/
+
+install -m 0755 -D -p %{name} %{buildroot}%{_bindir}/%{name}
+install -m 0644 -D -p %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+
+# Install translations
+pushd po
+cp -a mo %{buildroot}%{_datadir}/locale/
+popd
+
+%find_lang %{name}
+
+%clean
+rm -rf %{buildroot}
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1.*
+%{_datadir}/%{name}/
+%doc README COPYING 
+%doc pastebin.d/yourpaste.net.conf
+
+%changelog
+* Tue Aug 24 2010 Lameire Alexis <alexisis-pristontale at hotmail.com> - 1.1-4
+- add forget macro on the xslt procx
+
+* Sun Aug 22 2010 Lameire Alexis <alexisis-pristontale at hotmail.com> - 1.1-3
+- add forgotten -i option to the first sed command
+- add another sed to patch the user config dir. to a proper name
+- move the example conf. file yourpaste.conf to the doc. dir.
+- delete BuildRoot key
+
+* Sat Aug 21 2010 Lameire Alexis <alexisis-pristontale at hotmail.com> - 1.1-2
+- make owner on the datadir
+- patch source file to force config file folow the FHS
+
+* Sun Aug 01 2010 Lameire Alexis <alexisis-pristontale at hotmail.com> - 1.1-1
+- initial release
diff --git a/sources b/sources
index e69de29..22528f0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+669a27ff705e101488834e1524196587  pastebinit-1.1.tar.gz


More information about the scm-commits mailing list