--- libkal-0.9.0.orig/debian/changelog +++ libkal-0.9.0/debian/changelog @@ -0,0 +1,12 @@ +libkal (0.9.0-1ubuntu1) raring; urgency=low + + * Add simple autopkgtest to package. + + -- Vibhav Pant Wed, 06 Mar 2013 12:55:12 +0100 + +libkal (0.9.0-1) unstable; urgency=low + + * Initial release (Closes: #535461) + * Added Makefile.diff patch to add install target to Makefile. + + -- أحمد المحمودي (Ahmed El-Mahmoudy) Thu, 02 Jul 2009 10:21:23 +0300 --- libkal-0.9.0.orig/debian/compat +++ libkal-0.9.0/debian/compat @@ -0,0 +1 @@ +7 --- libkal-0.9.0.orig/debian/copyright +++ libkal-0.9.0/debian/copyright @@ -0,0 +1,32 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Name: libkal +Upstream-Maintainer: Petr Tomasek +Upstream-Source: http://www.etf.cuni.cz/~tomasek/pub/my/ + + +Files: debian/* +Author: أحمد المحمودي (Ahmed El-Mahmoudy) +Copyright: Copyright © 2009, أحمد المحمودي (Ahmed El-Mahmoudy) +License: LGPL-2+ + +Files: * +Author: Petr Tomasek +Copyright: Copyright © 1996-1998, Petr Tomasek +License: LGPL-2+ + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA + +On Debian systems, the complete text of the GNU LGPL2 licenses +can be found at `/usr/share/common-licenses/LGPL-2'. --- libkal-0.9.0.orig/debian/libkal-dev.dirs +++ libkal-0.9.0/debian/libkal-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libkal-0.9.0.orig/debian/watch +++ libkal-0.9.0/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.etf.cuni.cz/~tomasek/pub/my/libkal-(.*)\.tar\.gz --- libkal-0.9.0.orig/debian/control +++ libkal-0.9.0/debian/control @@ -0,0 +1,24 @@ +Source: libkal +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: أحمد المحمودي (Ahmed El-Mahmoudy) +Build-Depends: debhelper (>= 7), quilt +XS-Testsuite: autopkgtest +Standards-Version: 3.8.2 +Section: libs +Homepage: http://www.etf.cuni.cz/~tomasek/pub/my/ +Vcs-Git: git://git.debian.org/git/collab-maint/libkal.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/libkal.git + +Package: libkal-dev +Section: libdevel +Architecture: any +Description: library for converting dates between various calendar systems + The 'libkal' library provides support for converting dates between various + calendar systems (currently only julianic, gregorianic, arabic and jewish + ones) and some more related stuff. + . + The basic idea of this library is, that any date in any calendar system can be + converted to a single number, which express the number of days since some + fixed date in the past. libkal uses the so-called 'julianic date'(jd), that is + used in Astronomy (not exactly). --- libkal-0.9.0.orig/debian/libkal-dev.install +++ libkal-0.9.0/debian/libkal-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/lib*.a --- libkal-0.9.0.orig/debian/rules +++ libkal-0.9.0/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: patch + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libkal-0.9.0.orig/debian/libkal-dev.examples +++ libkal-0.9.0/debian/libkal-dev.examples @@ -0,0 +1,3 @@ +gtk-example/ +test.c +test1.c --- libkal-0.9.0.orig/debian/docs +++ libkal-0.9.0/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- libkal-0.9.0.orig/debian/tests/control +++ libkal-0.9.0/debian/tests/control @@ -0,0 +1,2 @@ +Tests: build +Depends: libkal-dev, build-essential \ No newline at end of file --- libkal-0.9.0.orig/debian/tests/build +++ libkal-0.9.0/debian/tests/build @@ -0,0 +1,36 @@ +#!/bin/sh +# autopkgtest check: Build and run a program against libkal, to verify that the +# headers and pkg-config file are installed correctly +# (C) 2012 Canonical Ltd. +# Author: Vibhav Pant + +set -e + +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM +cd $WORKDIR +cat < libkal_test.c +#include +#include + +int main(void) +{ + int d,m,y; + long jd; + + d = 1; + m = 3; + y = 2013; + + jd = kal_getdate(); + kal_conv_jd_jul(jd, &d, &m, &y); + + return 0; +} +EOF + +gcc -o libkal_test libkal_test.c -lkal -Wall -Werror +echo "build: OK" +[ -x libkal_test ] +./libkal_test +echo "run: OK" \ No newline at end of file --- libkal-0.9.0.orig/debian/patches/series +++ libkal-0.9.0/debian/patches/series @@ -0,0 +1 @@ +Makefile.diff --- libkal-0.9.0.orig/debian/patches/Makefile.diff +++ libkal-0.9.0/debian/patches/Makefile.diff @@ -0,0 +1,24 @@ +Added install target to Makefile +--- libkal-0.9.0.orig/Makefile 2009-07-02 14:35:11.000000000 +0300 ++++ libkal-0.9.0/Makefile 2009-07-02 14:44:02.000000000 +0300 +@@ -1,5 +1,10 @@ + +- ++DESTDIR= ++prefix=/usr ++libdir=${prefix}/lib ++includedir=${prefix}/include ++INSTALL=install -m 644 ++INSTALLDIR=install -d + CC=gcc + AR=ar + RANLIB=ranlib +@@ -34,3 +39,8 @@ + clean: + rm -f *.o *~ core check test test1 libkal.a test-dw + ++install: libkal.a ++ $(INSTALLDIR) ${DESTDIR}${libdir} ++ $(INSTALL) libkal.a ${DESTDIR}${libdir} ++ $(INSTALLDIR) ${DESTDIR}${includedir} ++ $(INSTALL) *.h ${DESTDIR}${includedir}