add packaging accepted/tizen/20130503.231502 accepted/tizen/20130520.094624 submit/tizen/20130503.233944 submit/tizen/20130509.185205 submit/tizen/20130517.024500
authorAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 05:13:10 +0000 (21:13 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 05:13:10 +0000 (21:13 -0800)
packaging/xorg-cf-files.spec [new file with mode: 0644]

diff --git a/packaging/xorg-cf-files.spec b/packaging/xorg-cf-files.spec
new file mode 100644 (file)
index 0000000..fbf4057
--- /dev/null
@@ -0,0 +1,97 @@
+Name:           xorg-cf-files
+Version:        1.0.4
+Release:        0
+License:        MIT
+Summary:        Data files for the imake utility
+Url:            http://xorg.freedesktop.org/
+Group:          Development/Tools/Building
+Source0:        http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
+BuildRequires:  font-util >= 1.1
+BuildRequires:  pkgconfig(xorg-macros) >= 1.4
+Requires:       gccmakedep
+Requires:       imake
+Requires:       makedepend
+# This was part of the xorg-x11-util-devel package up to version 7.6
+BuildArch:      noarch
+
+%description
+The xorg-cf-files package contains the data files for the imake utility,
+defining the known settings for a wide variety of platforms (many of
+which have not been verified or tested in over a decade), and for many
+of the libraries formerly delivered in the X.Org monolithic releases.
+
+The X Window System used imake extensively up through the X11R6.9
+release, for both full builds within the source tree and external
+software. X has since moved to GNU autoconf and automake for its build
+system in X11R7.0 and later releases, but still maintains imake for
+building existing external software programs that have not yet
+converted.
+
+%define _configdir %{_datadir}/X11/config
+
+%prep
+%setup -q
+cat > host.def << EOF
+#define ConfigDir %_configdir
+#define XAppLoadDir /usr/share/X11/app-defaults
+#define UseSeparateConfDir NO
+#define ManPath /usr/share/man
+%ifarch ppc64 s390x x86_64 sparc64
+#define ModuleDir /usr/lib64/xorg/modules
+%else
+#define ModuleDir /usr/lib/xorg/modules
+%endif
+#ifdef  i386Architecture
+#undef  DefaultGcc2i386Opt
+#define DefaultGcc2i386Opt      %{optflags} -fno-strict-aliasing
+#endif
+#ifdef  MipsArchitecture
+#undef  DefaultGcc2MipsOpt
+#define DefaultGcc2MipsOpt      %{optflags} -fno-strict-aliasing
+#endif
+#ifdef  PpcArchitecture
+#undef  DefaultGcc2PpcOpt
+#define DefaultGcc2PpcOpt       %{optflags} -fno-strict-aliasing
+#endif
+#ifdef  Ppc64Architecture
+#undef  DefaultGcc2Ppc64Opt
+#define DefaultGcc2Ppc64Opt     %{optflags} -fno-strict-aliasing
+#endif
+#ifdef  AMD64Architecture
+#undef  DefaultGcc2AMD64Opt
+#define DefaultGcc2AMD64Opt     %{optflags} -fno-strict-aliasing
+#endif
+#ifdef  s390xArchitecture
+#undef  OptimizedCDebugFlags
+#define OptimizedCDebugFlags    %{optflags} -fno-strict-aliasing
+#endif
+#ifdef  ia64Architecture
+#undef  OptimizedCDebugFlags
+#define OptimizedCDebugFlags    %{optflags} -fno-strict-aliasing
+#endif
+#if defined(SparcArchitecture) || defined(Sparc64Architecture)
+#undef  OptimizedCDebugFlags
+#define OptimizedCDebugFlags    %{optflags} -fno-strict-aliasing
+# undef HaveLib64
+#if defined(Sparc64Architecture)
+# define HaveLib64    YES
+#else
+# define HaveLib64    NO
+#endif
+#endif
+EOF
+
+%build
+%configure --with-config-dir=%_configdir
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%files
+%defattr(-,root,root)
+%doc ChangeLog COPYING README
+%dir %{_datadir}/X11
+%{_datadir}/X11/config/
+
+%changelog