Added atk.spec and atk.spec.in files. Moved GLIB_REQUIRED_VERSION to top
authorJens Finke <jens@gnome.org>
Tue, 14 Aug 2001 22:32:17 +0000 (22:32 +0000)
committerJens Finke <jens@src.gnome.org>
Tue, 14 Aug 2001 22:32:17 +0000 (22:32 +0000)
2001-08-15  Jens Finke <jens@gnome.org>

* Makefile.am (EXTRA_DIST): Added atk.spec and atk.spec.in files.
* configure.in: Moved GLIB_REQUIRED_VERSION to top of file and
added a AC_SUBST for it. This is needed for the spec.in file.
Added atk.spec to output list.
* atk.spec.in: New file.

ChangeLog
Makefile.am
atk.spec.in [new file with mode: 0644]
configure.in

index c26e468..d33f64e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-08-15  Jens Finke <jens@gnome.org>
+
+       * Makefile.am (EXTRA_DIST): Added atk.spec and atk.spec.in files.
+       * configure.in: Moved GLIB_REQUIRED_VERSION to top of file and
+       added a AC_SUBST for it. This is needed for the spec.in file.
+       Added atk.spec to output list.
+       * atk.spec.in: New file.
+
 2001-08-13  Padraig O'Briain  <padraig.obriain@sun.com>
 
        * atk/atkcomponent.[c|h]
index 608af6c..473f31b 100644 (file)
@@ -4,7 +4,9 @@ SUBDIRS=atk tests docs
 
 EXTRA_DIST =                   \
        atk-uninstalled.pc.in   \
-       atk.pc.in
+       atk.pc.in               \
+       atk.spec.in             \
+       atk.spec
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = atk.pc
diff --git a/atk.spec.in b/atk.spec.in
new file mode 100644 (file)
index 0000000..2564b93
--- /dev/null
@@ -0,0 +1,72 @@
+Name:          atk
+Summary:       Accessability Toolkit
+Version:       @VERSION@
+Release:       1
+License:       LGPL
+Group:         Development/Libraries
+Source:                %{name}-%{version}.tar.gz
+BuildRoot:     /var/tmp/%{name}-%{version}-root
+URL:           http://www.gtk.org
+Requires:      glib >= @GLIB_REQUIRED_VERSION@
+BuildRequires: glib-devel >= @GLIB_REQUIRED_VERSION@
+
+%description
+Handy library of accessability functions. Development libs and headers
+are in atk-devel.
+
+%package devel
+Summary:       Header, docs and development libraries for atk.
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+
+%description devel
+Header, docs and development libraries for atk.
+
+%prep
+%setup -q
+
+%build
+CFLAGS="$RPM_OPT_FLAGS"
+./configure --prefix=%{_prefix} \
+    --bindir=%{_bindir} --mandir=%{_mandir} \
+    --localstatedir=%{_localstatedir} --libdir=%{_libdir} \
+    --datadir=%{_datadir} --includedir=%{_includedir} \
+    --sysconfdir=%{_sysconfdir} --disable-gtk-doc
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
+    mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
+    localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
+    datadir=$RPM_BUILD_ROOT%{_datadir} \
+    includedir=$RPM_BUILD_ROOT%{_includedir} \
+    sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+
+%doc AUTHORS COPYING ChangeLog NEWS README
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-, root, root)
+
+%{_libdir}/lib*.so
+%{_libdir}/*a
+%{_libdir}/pkgconfig/*.pc
+%{_includedir}/atk-1.0
+%{_datadir}/gtk-doc/html/atk
+
+%changelog
+
+* Wed Aug 15 2001 Jens Finke <jens@gnome.org>
+- created spec file
\ No newline at end of file
index c829872..813d314 100644 (file)
@@ -3,6 +3,18 @@ dnl Process this file with autoconf to produce a configure script.
 AC_INIT(ChangeLog)
 AM_INIT_AUTOMAKE(atk, 0.2)
 
+dnl ==========================================================================
+dnl
+dnl If you add a version number here, you *must* add an AC_SUBST line for
+dnl it too, or it will never make it into the spec file!
+dnl
+dnl ==========================================================================
+
+GLIB_REQUIRED_VERSION=1.3.2
+AC_SUBST(GLIB_REQUIRED_VERSION)
+
+dnl ==========================================================================
+
 #
 # Making releases:
 #   ATK_MICRO_VERSION += 1;
@@ -54,7 +66,6 @@ changequote([,])dnl
 
 GLIB_PACKAGES="gobject-2.0 gmodule-2.0"
 AC_SUBST(GLIB_PACKAGES)
-GLIB_REQUIRED_VERSION=1.3.2
 
 dnl This PATH_GLIB is somewhat redundant, but does a sanity compile and 
 dnl importantly defines the GLIB_GENMARSHAL variable for subst into the
@@ -123,4 +134,5 @@ atk-uninstalled.pc
 atk/Makefile
 tests/Makefile
 docs/Makefile
+atk.spec
 ])