[Reproducible-commits] [libextutils-depends-perl] 09/187: initial import
Maria Valentina Marin Rodrigues
akira-guest at moszumanska.debian.org
Wed Jan 21 21:16:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
akira-guest pushed a commit to branch pu/reproducible_builds
in repository libextutils-depends-perl.
commit f603d7972f135dc58873f0503debf8b14e72cc9a
Author: x-rwmcfa1 <x-rwmcfa1 at localhost>
Date: Sat Sep 6 23:53:10 2003 +0000
initial import
* ExtUtils-Depends/perl-ExtUtils-Depends.spec.in,
Glade/perl-Gtk2-GladeXML.spec.in, Glib/perl-Glib.spec.in,
Gnome2/perl-Gnome2.spec.in, GnomeCanvas/perl-Gnome2-Canvas.spec.in,
GnomePrint2/perl-Gnome2-Print.spec.in, Gtk2/perl-Gtk2.spec.in,
GtkSpell/perl-Gtk2-Spell.spec.in: initial import
* ExtUtils-Depends/Makefile.PL, Glade/Makefile.PL, Glib/Makefile.PL,
Gnome2/Makefile.PL, GnomeCanvas/Makefile.PL, GnomePrint2/Makefile.PL,
Gtk2/Makefile.PL, GtkSpell/Makefile.PL
svn path=/trunk/; revision=14
---
Makefile.PL | 22 ++++++++++++++++
perl-ExtUtils-Depends.spec.in | 58 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
diff --git a/Makefile.PL b/Makefile.PL
index 25689dc..bb07702 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,3 +9,25 @@ WriteMakefile(
'NAME' => 'ExtUtils::Depends',
'VERSION_FROM' => 'lib/ExtUtils/Depends.pm',
);
+
+package MY;
+use Cwd;
+sub postamble
+{
+ my @dirs = qw{rpms rpms/BUILD rpms/RPMS rpms/SOURCES
+ rpms/SPECS rpms/SRPMS};
+ my $cwd = getcwd();
+
+"
+rpms/:
+ -mkdir @dirs
+
+perl-\$(DISTNAME).spec: perl-\$(DISTNAME).spec.in
+ sed -e \"s/\@VERSION\@/\$(VERSION)/g\" -e \"s/\@SOURCE\@/\$(DISTNAME)-\$(VERSION).tar.gz/g\" \$< > \$@
+
+dist-rpms: Makefile dist perl-\$(DISTNAME).spec rpms/
+ cp \$(DISTNAME)-\$(VERSION).tar.gz rpms/SOURCES/
+ rpmbuild -ba --define \"_topdir $cwd/rpms\" perl-\$(DISTNAME).spec
+"
+}
+package MAIN;
diff --git a/perl-ExtUtils-Depends.spec.in b/perl-ExtUtils-Depends.spec.in
new file mode 100644
index 0000000..aaafb92
--- /dev/null
+++ b/perl-ExtUtils-Depends.spec.in
@@ -0,0 +1,58 @@
+Summary: ExtUtils-Depends Perl module
+Name: perl-ExtUtils-Depends
+Version: @VERSION@
+Release: 1
+Packager: gtk-perl-list at gnome.org
+License: LGPL
+Group: Development/Tools
+URL: http://search.cpan.org/dist/ExtUtils-Depends/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch: noarch
+BuildRequires: perl >= 2:5.8.0
+Source0: @SOURCE@
+
+%description
+This module tries to make it easy to build Perl extensions that use functions
+and typemaps provided by other perl extensions. This means that a perl
+extension is treated like a shared library that provides also a C and an XS
+interface besides the perl one. This works as long as the base extension is
+loaded with the RTLD_GLOBAL flag (usually done with a sub dl_load_flags {0x01}
+in the main .pm file) if you need to use functions defined in the module.
+
+%prep
+%setup -q -n ExtUtils-Depends-%{version}
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix}
+make OPTIMIZE="$RPM_OPT_FLAGS"
+make test
+
+%install
+rm -rf $RPM_BUILD_ROOT
+eval `perl '-V:installarchlib'`
+mkdir -p $RPM_BUILD_ROOT$installarchlib
+%makeinstall
+rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
+
+[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress
+
+find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
+ sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist
+if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
+ echo "ERROR: EMPTY FILE LIST"
+ exit 1
+fi
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}-%{version}-%{release}-filelist
+%defattr(-,root,root,-)
+
+%changelog
+* Thu Sep 06 2003 rm - 0.103
+- Specfile template created and worked upon.
+
+* Thu Sep 04 2003 gtk-perl-list at gnome.org - 0.103-8
+- Specfile autogenerated.
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/libextutils-depends-perl.git
More information about the Reproducible-commits
mailing list