Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
115f28a6ef | |||
4fd39664cc | |||
04493abe7f | |||
30a80efb13 | |||
05ecbae941 | |||
610ecb34e9 | |||
4be745f748 | |||
59eb8fd306 |
14
configure.ac
14
configure.ac
@@ -1,8 +1,12 @@
|
|||||||
m4_define([swe_glib_api_version], [1.0])
|
m4_define([swe_glib_major_version], [1])
|
||||||
|
m4_define([swe_glib_minor_version], [0])
|
||||||
|
m4_define([swe_glib_micro_version], [1])
|
||||||
|
m4_define([swe_glib_version], [swe_glib_major_version.swe_glib_minor_version.swe_glib_micro_version])
|
||||||
|
m4_define([swe_glib_api_version], [swe_glib_major_version.0])
|
||||||
|
|
||||||
AC_INIT([swe-glib], [swe_glib_api_version], [gergely@polonkai.eu])
|
AC_INIT([SWE-GLib], [swe_glib_version], [gergely@polonkai.eu], [swe-glib])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
|
||||||
AM_INIT_AUTOMAKE([-Wall foreign])
|
AM_INIT_AUTOMAKE([-Wall foreign])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [compile with debugging support])], , enable_debug=no)
|
AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [compile with debugging support])], , enable_debug=no)
|
||||||
|
|
||||||
@@ -10,6 +14,10 @@ if test "x$enable_debug" = "xyes" ; then
|
|||||||
AC_DEFINE([DEBUG], [1], [Define if debugging is enabled])
|
AC_DEFINE([DEBUG], [1], [Define if debugging is enabled])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_SUBST([SWE_GLIB_MAJOR_VERSION], [swe_glib_major_version])
|
||||||
|
AC_SUBST([SWE_GLIB_MINOR_VERSION], [swe_glib_minor_version])
|
||||||
|
AC_SUBST([SWE_GLIB_MICRO_VERSION], [swe_glib_micro_version])
|
||||||
|
AC_SUBST([SWE_GLIB_VERSION], [swe_glib_version])
|
||||||
AC_SUBST([SWE_GLIB_API_VERSION], [swe_glib_api_version])
|
AC_SUBST([SWE_GLIB_API_VERSION], [swe_glib_api_version])
|
||||||
AC_SUBST([SWE_GLIB_API_VERSION_U], [AS_TR_SH([swe_glib_api_version])])
|
AC_SUBST([SWE_GLIB_API_VERSION_U], [AS_TR_SH([swe_glib_api_version])])
|
||||||
|
|
||||||
|
@@ -59,5 +59,7 @@ sweph_DATA = \
|
|||||||
sweph-data/seplm54.se1 \
|
sweph-data/seplm54.se1 \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
EXTRA_DIST = $(sweph_DATA)
|
EXTRA_DIST = \
|
||||||
|
$(sweph_DATA) \
|
||||||
|
swe-glib-$(SWE_GLIB_VERSION).spec
|
||||||
|
|
||||||
|
91
data/swe-glib-1.0.1.spec
Normal file
91
data/swe-glib-1.0.1.spec
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
Name: swe-glib
|
||||||
|
Version: 1.0.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: A GLib style wrapper library around the Swiss Ephemeris library, created by Astrodienst.
|
||||||
|
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: LGPLv3+
|
||||||
|
URL: http://gergely.polonkai.eu/swe-glib/
|
||||||
|
Source: https://github.com/gergelypolonkai/%{name}/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: glib2-devel
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: automake autoconf libtool
|
||||||
|
BuildRequires: gtk-doc
|
||||||
|
Requires: glib2
|
||||||
|
Requires: %{name}-data = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
SWE-GLib is a GLib style wrapper library around the Swiss Ephemeris library,
|
||||||
|
created by Astrodienst. It can be used for precise astronomical calculation
|
||||||
|
based on time and topographic location.
|
||||||
|
|
||||||
|
%package data
|
||||||
|
Summary: A GLib style wrapper library around the Swiss Ephemeris library, created by Astrodienst.
|
||||||
|
Group: Development/Libraries
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description data
|
||||||
|
The swe-glib-data package includes data files for the SWE-GLib library.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: A GLib style wrapper library around the Swiss Ephemeris library, created by Astrodienst.
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The swe-glib-devel package includes the header files for the SWE-GLib library.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: A GLib style wrapper library around the Swiss Ephemeris library, created by Astrodienst.
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
The swe-glib-doc package includes documentation for the SWE-GLib library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-gtk-doc
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/hu/LC_MESSAGES/swe-glib.mo
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc ChangeLog
|
||||||
|
%{_libdir}/libswe-1.75.so.*
|
||||||
|
%{_libdir}/libswe-glib-1.0.so.*
|
||||||
|
%{_libdir}/girepository-1.0/SweGlib-1.0.typelib
|
||||||
|
|
||||||
|
%files data
|
||||||
|
%{_datadir}/swe-glib/*.se1
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{_datadir}/gtk-doc/html/*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/pkgconfig/*
|
||||||
|
%{_datadir}/gir-1.0/SweGlib-1.0.gir
|
||||||
|
%{_libdir}/libswe-1.75.so
|
||||||
|
%{_libdir}/libswe-glib-1.0.so
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
@@ -5,7 +5,7 @@ includedir=@includedir@
|
|||||||
|
|
||||||
Name: SWE-GLib
|
Name: SWE-GLib
|
||||||
Description: GLib wrapper functions for the Swiss Ephemeris library
|
Description: GLib wrapper functions for the Swiss Ephemeris library
|
||||||
Version: @SWE_GLIB_API_VERSION@
|
Version: @VERSION@
|
||||||
Requires: glib-2.0
|
Requires: glib-2.0
|
||||||
Libs: -L${libdir} -lswe-glib-@VERSION@
|
Libs: -L${libdir} -lswe-glib-@SWE_GLIB_API_VERSION@
|
||||||
Cflags: -I${includedir}/swe-glib
|
Cflags: -I${includedir}/swe-glib
|
||||||
|
@@ -28,7 +28,7 @@ BUILT_SOURCES = gswe-enumtypes.c gswe-enumtypes.h
|
|||||||
|
|
||||||
CLEANFILES = $(BUILT_SOURCES)
|
CLEANFILES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
EXTRA_DIST = gswe-enumtypes.h.template gswe-enumtypes.c.template swe-glib-private.h
|
EXTRA_DIST = gswe-enumtypes.h.template gswe-enumtypes.c.template swe-glib-private.h $(INST_H_SRC_FILES)
|
||||||
|
|
||||||
gswe-enumtypes.h: $(gswe_headers) gswe-enumtypes.h.template
|
gswe-enumtypes.h: $(gswe_headers) gswe-enumtypes.h.template
|
||||||
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
||||||
|
Reference in New Issue
Block a user