initial try on packaging for autobuild
authorKlaus Kaempf <kkaempf@suse.de>
Sun, 15 Jan 2006 16:46:21 +0000 (16:46 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Sun, 15 Jan 2006 16:46:21 +0000 (16:46 +0000)
- include files are all installed currently, which is certainly not wanted
- -devel pacakge is rather large due to extensive doxygen files

19 files changed:
libzypp.changes [new file with mode: 0644]
libzypp.spec [new file with mode: 0644]
zypp/Makefile.am
zypp/base/Makefile.am
zypp/capability/Makefile.am
zypp/detail/Makefile.am
zypp/media/Makefile.am
zypp/parser/Makefile.am
zypp/parser/tagfile/Makefile.am
zypp/parser/yum/Makefile.am
zypp/solver/Makefile.am
zypp/solver/detail/Makefile.am
zypp/solver/temporary/Makefile.am
zypp/source/Makefile.am
zypp/source/yum/Makefile.am
zypp/target/Makefile.am
zypp/target/hal/Makefile.am
zypp/target/rpm/Makefile.am
zypp/url/Makefile.am

diff --git a/libzypp.changes b/libzypp.changes
new file mode 100644 (file)
index 0000000..5c6b399
--- /dev/null
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Sat Jan 14 08:51:55 CET 2006 - kkaempf@suse.de
+
+- Initial version
+
diff --git a/libzypp.spec b/libzypp.spec
new file mode 100644 (file)
index 0000000..9252226
--- /dev/null
@@ -0,0 +1,76 @@
+#
+# spec file for package libzypp (Version 1.9.1)
+#
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Please submit bugfixes or comments via http://bugs.opensuse.org
+#
+
+# norootforbuild
+# neededforbuild  gpp libgpp boost boost-devel doxygen graphviz gettext-devel tcl expect dejagnu pkgconfig expat zlib zlib-devel libxml2 libxml2-devel curl curl-devel dbus-1 dbus-1-glib dbus-1-devel hal hal-devel fontconfig freetype2 libjpeg libpng  glib2 glib2-devel rpm-devel popt popt-devel openssl openssl-devel libicu
+
+BuildRequires: binutils gcc gcc-c++ glibc-devel libstdc++ libstdc++-devel boost-devel doxygen graphviz gettext-devel dejagnu pkgconfig expat zlib-devel libxml2-devel curl-devel dbus-1-devel hal-devel glib2 glib2-devel rpm-devel
+
+Name:         libzypp
+License:      GNUv2
+Group:        System/Libraries
+BuildRoot:    %{_tmppath}/%{name}-%{version}-build
+Autoreqprov:  on
+Obsoletes:    yast2-packagemanager
+Summary:      Package, Patch, Pattern, Product Management
+Version:      1.0.0
+Release:      0
+Source:       zypp-0.0.0.tar.bz2
+prefix:       /usr
+
+%description
+We are ZYPP, you will be assimilated.
+
+%package devel
+Requires:     libzypp
+Summary:      Package, Patch, Pattern, Product Management - development files
+Group:        Development/Libraries/C and C++
+
+%description -n libzypp-devel
+We are ZYPP, you will be assimilated.
+
+%prep
+%setup -q -n zypp-0.0.0
+
+%build
+mv configure.ac x
+grep -v devel/ x > configure.ac
+autoreconf --force --install --symlink --verbose
+%{?suse_update_config:%{suse_update_config -f}}
+./configure --prefix=%{prefix} --libdir=%{_libdir} --mandir=%{_mandir} --disable-static
+make %{?jobs:-j %jobs}
+make check
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%post
+%run_ldconfig
+
+%postun
+%run_ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%dir %{_libdir}/libzypp*so.*
+
+%files devel
+%defattr(-,root,root)
+%dir %{_libdir}/libzypp.so
+%dir %{_libdir}/libzypp.la
+%dir %{_docdir}
+%{_docdir}
+%dir %{prefix}/include/zypp
+%{prefix}/include/zypp/*
+%dir %{prefix}/share/zypp
+%{prefix}/share/zypp/*
index f3805b703747a75cec7ba167cdb50d5038312ebd..df079f0a516850c05574053b46f5b9e5a8c773dc 100644 (file)
@@ -5,7 +5,7 @@ SUBDIRS = base url media capability detail parser source target solver
 
 ## ##################################################
 
-include_HEADERS = NeedAType.h \
+pkginclude_HEADERS = NeedAType.h \
        Arch.h          \
        ByteCount.h     \
        Capability.h    \
index 1fdb11a2c5fde1999f74170aa7b5b32d00a8c04d..ca5f28d5e0dbc10fbcf61fd47fd0da2fca8fb517 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS =
 
 ## ##################################################
 
-include_HEADERS =      \
+baseincludedir = $(pkgincludedir)/base
+
+baseinclude_HEADERS =  \
        Debug.h         \
        Fd.h            \
        KindOf.h        \
index 516dcfa0d70be12ba602f1fc6e5b599d487d2add..8c9a726b2fa15a23f987ddba9aca195934904437 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS =
 
 ## ##################################################
 
-include_HEADERS = \
+capabilityincludedir = $(pkgincludedir)/capability
+
+capabilityinclude_HEADERS = \
        CapabilityImpl.h\
        CapTraits.h     \
        Capabilities.h  \
index cb59e1fbd8a15dca277a5c35090e4a410e88c51b..1506b03df6126b2d1e7144715c447f4d59989f6f 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS =
 
 ## ##################################################
 
-include_HEADERS = \
+detailincludedir = $(pkgincludedir)/detail
+
+detailinclude_HEADERS = \
        ResolvableImpl.h        \
        ResObjectImplIf.h       \
        ResObjectFactory.h      \
index 20b6dabc3371bd0927ff504464ec9c392c6aabad..035653c7e068c7b9435b9a417c06d9c369270255 100644 (file)
@@ -7,7 +7,9 @@ INCLUDES = -I$(oldincludedir)/libxml2
 
 ## ##################################################
 
-include_HEADERS =              \
+mediaincludedir = $(pkgincludedir)/media
+
+mediainclude_HEADERS =                 \
        MediaException.h        \
        MediaAccess.h           \
        MediaHandler.h          \
index be1872d7ead3609045b1960014fde73cd5f30036..702f5f595276890aa201ed6c9755a2ab824ebe2e 100644 (file)
@@ -7,7 +7,9 @@ INCLUDES = -I$(oldincludedir)/libxml2
 
 ## ##################################################
 
-include_HEADERS = \
+parserincludedir = $(pkgincludedir)/parser
+
+parserinclude_HEADERS = \
        XMLNodeIterator.h       \
        LibXMLHelper.h          \
        \
index e1d9a395a9e7de41f09e344b03eb7b6790606575..7eb822ff1f114ef5605ab88a66c9e620994abd9b 100644 (file)
@@ -7,7 +7,9 @@ INCLUDES =
 
 ## ##################################################
 
-include_HEADERS = \
+parsertagfileincludedir = $(pkgincludedir)/parser/tagfile
+
+parsertagfileinclude_HEADERS = \
        ParseException.h\
        Tags.h          \
        Grammar.h       \
index 685c5df0e2bbac125c7ed47d6640b8f6385cae0d..fc4226d1a42e10af41d99057291b0feac221a0bf 100644 (file)
@@ -7,7 +7,9 @@ INCLUDES = -I$(oldincludedir)/libxml2 -I..
 
 ## ##################################################
 
-include_HEADERS = \
+parseryumincludedir = $(pkgincludedir)/parser/yum
+
+parseryuminclude_HEADERS = \
        YUMFileListParser.h     \
        YUMOtherParser.h        \
        YUMParser.h             \
index a356c959f65d891dc4098f9016be9930779984ea..e92a5077823ecd9c85f7ff7fb28db45f4730322f 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS = detail temporary
 
 ## ##################################################
 
-include_HEADERS = libzypp_solver.h
+solverincludedir = $(pkgincludedir)/solver
+
+solverinclude_HEADERS = libzypp_solver.h
 
 noinst_LTLIBRARIES =   lib@PACKAGE@_solver.la
 
index 305c94dcf9cbb2dd0789641a093e6af728fc04dd..3190dae8ddf9ea56457653290795c14d37377fd0 100644 (file)
@@ -10,7 +10,9 @@ INCLUDES =                                            \
        -DG_LOG_DOMAIN=\"solver_detail\"                \
        -DPHI
 
-include_HEADERS = \
+solverdetailincludedir = $(pkgincludedir)/solver/detail
+
+solverdetailinclude_HEADERS = \
        ResItemAndDependency.h          \
        ResItemAndDependencyPtr.h       \
        Importance.h                    \
index 253ab1e2dbf27c23626cbfee745e60b861c9f656..fd7b16876b721994d3733b793816dc5598c6c0e1 100644 (file)
@@ -9,7 +9,9 @@ INCLUDES =                                              \
        -I/usr/include/libxml2 -I/usr/include/rpm       \
        -DG_LOG_DOMAIN=\"solver_temporary\"
 
-include_HEADERS = \
+solvertemporaryincludedir = $(pkgincludedir)/solver/temporary
+
+solvertemporaryinclude_HEADERS = \
        utils.h                         \
        extract.h                       \
        Hash.h                          \
index 70f87fb037fb5af36cdad8c83e5f4833a4c08bed..70cb5e8ffdb5590239560202cec7f3a0da1b651f 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS = yum
 
 ## ##################################################
 
-include_HEADERS =      \
+sourceincludedir = $(pkgincludedir)/source
+
+sourceinclude_HEADERS =        \
        Source.h
 
 
index 84628fcba7d0054690b16dfa8c65789dafdb7c33..1e0561d0e54e0826193bf2e3b3a2d62662820025 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS =
 
 ## ##################################################
 
-include_HEADERS =                      \
+sourceyumincludedir = $(pkgincludedir)/source/yum
+
+sourceyuminclude_HEADERS =                     \
        YUMSource.h                     \
        YUMScriptImpl.h                 \
        YUMMessageImpl.h                \
index b77d0f84f25b7b57569b926efa5f6579377b80de..33c7306406f01a2a5da7809ec901854f41a96acc 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS = hal rpm
 
 ## ##################################################
 
-include_HEADERS =
+targetincludedir = $(pkgincludedir)/target
+
+targetinclude_HEADERS =
 
 ## ##################################################
 
index ad887e5f700b01cbb5321dcfc7ba51134a5cf7ad..54e68f48927d83d121286e20935d2aec935864fb 100644 (file)
@@ -15,7 +15,9 @@ INCLUDES = \
 
 ## ##################################################
 
-include_HEADERS =      \
+targethalincludedir = $(pkgincludedir)/target/hal
+
+targethalinclude_HEADERS =     \
        Hal.h
 
 
index ec5bfda3d1169d36e4ae72e359e6a6b404e06621..830c6dcb01bd1e4ee8ab1172ed82f9de4ad5d0d1 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS =
 
 ## ##################################################
 
-include_HEADERS =              \
+targetrpmincludedir = $(pkgincludedir)/target/rpm
+
+targetrpminclude_HEADERS =             \
        librpm.h                \
        RpmException.h          \
        BinHeader.h             \
index 187f8d3f1c477c028b9e6d7e6c901bf18f612bae..7053a3299014e237f783d89c26c2d59a677041cf 100644 (file)
@@ -5,7 +5,9 @@ SUBDIRS =
 
 ## ##################################################
 
-include_HEADERS =      \
+urlincludedir = $(pkgincludedir)/url
+
+urlinclude_HEADERS =   \
        UrlBase.h       \
        UrlUtils.h