Skip to content

Instantly share code, notes, and snippets.



Last active Sep 23, 2015
What would you like to do?
%define version 0.14.1
Summary: CHTML to HDML,XHTML,JHTML convert module for Apache HTTPD.
Name: mod_chxj
Version: %{version}
Release: 1
License: Apache License Version 2.0
Group: System Environment/Daemons
Vendor: Atsushi Konno
Source: mod-chxj_%{version}.src.tar.gz
BuildRoot: %{_tmppath}/%{name}_%{version}-buildroot
Packager: Atsushi Konno <>
Requires: ImageMagick >=, httpd >= 2.2.3, apr >= 1.2.7, apr-util >= 1.2.7, mysql >= 5.0.22, openssl >= 0.9.8, memcached >= 1.4.4, libmemcached >= 0.31
BuildRequires: mysql-devel httpd-devel ImageMagick-devel gcc-c++ libtool openssl-devel libmemcached-devel tar
The contents conversion middleware for domestic main carrying (three careers)
is made as a module for Apache2.0. UserAgent is seen when contents made with
CHTML are output and it converts it into HDML, XHTML, and JHTML (The image :
to JPG, GIF, JPG, GIF from PNG, and PNG and BMP). With QR code generation
%setup -q -n mod-chxj_%{version}
./configure --enable-mysql-cookie \
--with-mysql-header=/usr/include/mysql \
--with-mysql-lib-dir=/usr/lib64/mysql \
--enable-memcache-cookie \
--with-memcached-header=/usr/include/libmemcached \
%{__rm} -rf $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/chxj
%{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules
%{__install} -m0644 support/centos/chxj.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/chxj.conf
%{__install} -m0644 etc/emoji.xml $RPM_BUILD_ROOT%{_sysconfdir}/httpd/chxj/emoji.xml
%{__install} -m0644 etc/device_data.xml $RPM_BUILD_ROOT%{_sysconfdir}/httpd/chxj/device_data.xml
%{__make} -C src make_so
%{__install} -m0755 src/ $RPM_BUILD_ROOT%{_libdir}/httpd/modules/
%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/httpd/conf.d/chxj.conf
%config(noreplace) %{_sysconfdir}/httpd/chxj/emoji.xml
%config(noreplace) %{_sysconfdir}/httpd/chxj/device_data.xml
* Wed Sep 23 2015 Kazuki Hashimoto <> 0.14.1
- Changed libmemcaced use package.
* Fri Mar 4 2011 Atsushi Konno <> 0.13.0
- Changed libmemcached version.
* Fri Nov 7 2008 Atsushi Konno <> 0.12.17-1
- Added initial package for CentOS5.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.