[zlib-ada] Imported.
Björn Persson
rombobeorn at fedoraproject.org
Mon Sep 3 07:17:15 UTC 2012
commit c7a08e9cb09b4a5ab6a2b191a795f4d4b7c208b7
Author: Björn Persson <bjorn at rombobjörn.se>
Date: Mon Sep 3 09:17:11 2012 +0200
Imported.
.gitignore | 1 +
build_zlib_ada.gpr | 38 ++++++++++++++++++++
sources | 1 +
zlib-ada.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++
zlib_ada.gpr | 17 +++++++++
5 files changed, 156 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6ce4806 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zlib-ada-20120830.tar.bz2
diff --git a/build_zlib_ada.gpr b/build_zlib_ada.gpr
new file mode 100644
index 0000000..6885927
--- /dev/null
+++ b/build_zlib_ada.gpr
@@ -0,0 +1,38 @@
+-- This project file works together with the RPM spec file to compile Zlib-Ada
+-- into an RPM package.
+-- Copyright 2012 B. Persson, Bjorn at Rombobeorn.se
+--
+-- This file is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+
+with "directories";
+library project Build_Zlib_Ada is
+
+ Version := external("RPM_PACKAGE_VERSION");
+ Destdir := external("DESTDIR");
+
+ for Library_Name use "zlib_ada";
+ for Library_Kind use "relocatable";
+ for Library_Version use "libzlib_ada-" & Version & ".so.0";
+ for Library_Src_Dir use Destdir & Directories.Includedir & "/zlib-ada";
+ for Library_Dir use Destdir & Directories.Libdir;
+ for Library_ALI_Dir use Destdir & Directories.Libdir & "/zlib-ada";
+ for Library_Options use ("-lz", external("LDFLAGS"));
+
+ -- Put the binder files for different architectures in subdirectories where
+ -- they won't conflict with each other.
+ for Object_Dir use Directories.Hardware_Platform;
+
+ for Source_Files use ("zlib.ads",
+ "zlib.adb",
+ "zlib-streams.ads",
+ "zlib-streams.adb",
+ "zlib-thin.ads",
+ "zlib-thin.adb");
+ for Library_Interface use ("Zlib", "Zlib.Streams", "Zlib.Thin");
+ -- Zlib.Thin must be listed as an interface unit because the body of Zlib
+ -- depends on it.
+
+end Build_Zlib_Ada;
diff --git a/sources b/sources
index e69de29..c54ab10 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8d24e104d1671dedc3714edb295794bd zlib-ada-20120830.tar.bz2
diff --git a/zlib-ada.spec b/zlib-ada.spec
new file mode 100644
index 0000000..f6d2de1
--- /dev/null
+++ b/zlib-ada.spec
@@ -0,0 +1,99 @@
+Name: zlib-ada
+Version: 1.4
+Release: 0.3.20120830CVS%{?dist}
+Summary: Zlib for Ada
+Summary(sv): Zlib för ada
+
+Group: System Environment/Libraries
+License: GPLv3+ with exceptions
+URL: http://zlib-ada.sourceforge.net/
+# The tarball was made with these commands:
+# cvs -z3 -d:pserver:anonymous at zlib-ada.cvs.sourceforge.net:/cvsroot/zlib-ada co -P zlib-ada
+# tar --create --exclude-vcs --bzip2 --file=zlib-ada-20120830.tar.bz2 zlib-ada
+Source: zlib-ada-20120830.tar.bz2
+# This will be the source when there is a new release:
+#Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source2: build_zlib_ada.gpr
+Source3: zlib_ada.gpr
+
+BuildRequires: gcc-gnat fedora-gnat-project-common zlib-devel chrpath
+# Build only on architectures where gcc-gnat is available:
+ExclusiveArch: %{GNAT_arches}
+
+%global common_description_en \
+Zlib-Ada is a thick Ada binding to the popular compression/decompression \
+library Zlib.
+
+%global common_description_sv \
+Zlib-Ada är en tjock adabindning till det populära komprimerings- och \
+avkomprimeringsbiblioteket Zlib.
+
+%description %{common_description_en}
+
+%description -l sv %{common_description_sv}
+
+
+%package devel
+Summary: Development files for Zlib-Ada
+Summary(sv): Filer för programmering med Zlib-Ada
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: fedora-gnat-project-common
+
+%description devel %{common_description_en}
+
+The %{name}-devel package contains source code and linking information for
+developing applications that use Zlib-Ada.
+
+%description devel -l sv %{common_description_sv}
+
+Paketet %{name}-devel innehåller källkod och länkningsinformation som behövs
+för att utveckla program som använder Zlib-Ada.
+
+
+%prep
+%setup -q -n zlib-ada
+chmod a-x * # Remove bogus executable bits.
+cp %{SOURCE2} .
+
+
+%build
+gnatmake -P build_zlib_ada.gpr %{Gnatmake_optflags} -XDESTDIR=build_target -XLDFLAGS=%{__global_ldflags}
+# Remove the unnecessary runpath that Gnatmake added.
+chrpath --delete build_target%{_libdir}/*.so.*
+
+
+%install
+mv build_target/* --target-directory=%{buildroot}
+# Add the project file for projects that use this library.
+mkdir --parents %{buildroot}%{_GNAT_project_dir}
+cp --preserve=timestamps %{SOURCE3} %{buildroot}%{_GNAT_project_dir}/
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc readme.txt COPYING3 COPYING.RUNTIME
+%{_libdir}/*.so.*
+
+%files devel
+%doc test.adb mtest.adb read.adb buffer_demo.adb
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/zlib-ada
+%{_GNAT_project_dir}/*
+
+
+%changelog
+* Mon Sep 03 2012 Björn Persson <bjorn at rombobjörn.se> - 1.4-0.3.20120830CVS
+- Switched from GPRbuild to Gnatmake because the library fails to initialize
+ itself when built with GPRbuild.
+
+* Sat Sep 01 2012 Björn Persson <bjorn at rombobjörn.se> - 1.4-0.2.20120830CVS
+- Remove bogus executable bits.
+
+* Thu Aug 30 2012 Björn Persson <bjorn at rombobjörn.se> - 1.4-0.1.20120830CVS
+- ready to be submitted for review
diff --git a/zlib_ada.gpr b/zlib_ada.gpr
new file mode 100644
index 0000000..adb5a17
--- /dev/null
+++ b/zlib_ada.gpr
@@ -0,0 +1,17 @@
+-- Projects that use Zlib-Ada should import this file.
+-- Copyright 2012 B. Persson, Bjorn at Rombobeorn.se
+--
+-- This file is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+
+with "directories";
+library project Zlib_Ada is
+ for Library_Name use "zlib_ada";
+ for Library_Kind use "relocatable";
+ for Source_Dirs use (Directories.Includedir & "/zlib-ada");
+ for Library_Dir use Directories.Libdir;
+ for Library_ALI_Dir use Directories.Libdir & "/zlib-ada";
+ for Externally_Built use "true";
+end Zlib_Ada;
More information about the scm-commits
mailing list